Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

class-list

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-list - npm Package Compare versions

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
}
}

2

package.json
{
"name": "class-list",
"version": "0.0.1",
"version": "0.1.0",
"description": "A cross browser class list",

@@ -5,0 +5,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc