Comparing version 0.0.1 to 0.1.0
12
index.js
@@ -71,3 +71,3 @@ // contains, add, remove, toggle | ||
return className.split(" ").filter(isTruthy) | ||
return filter(className.split(" "), isTruthy) | ||
} | ||
@@ -89,4 +89,12 @@ | ||
function filter (arr, fn) { | ||
var ret = [] | ||
for (var i = 0; i < arr.length; i++) { | ||
if (fn(arr[i])) ret.push(arr[i]) | ||
} | ||
return ret | ||
} | ||
function isTruthy(value) { | ||
return !!value | ||
} | ||
} |
{ | ||
"name": "class-list", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "A cross browser class list", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
21974
294
1