@dr/bem-helper
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -37,3 +37,3 @@ function BEM (...args) { | ||
function modifierReducer (result, [modifier, value]) { | ||
if (value !== false || value !== undefined || value !== null) { | ||
if (value !== false && value !== undefined && value !== null) { | ||
result.push(`--${modifier}${(value !== true) ? `-${value}` : "" }`); | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "@dr/bem-helper", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Helper to create BEM-style classnames", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,2 +11,7 @@ var BEM = require("./index"); | ||
console.log(singleBound({rating: 3})); | ||
console.log(singleBound({rating: 3})); | ||
(function (foo, bar, qq) { | ||
console.log(BEM("dr-module", "list", {foo, bar, qq})); | ||
} ("foo", null)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4222
47