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

set

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

set - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "set",
"version": "1.1.0",
"version": "1.1.1",
"description": "An implementation of Sets in JavaScript",

@@ -5,0 +5,0 @@ "main": "set",

@@ -25,19 +25,19 @@ # Set.js

### Static functions
`Set#unique` given an array, return an array with all duplicates removed.
* `Set#unique` given an array, return an array with all duplicates removed.
### Instance functions
`Set#contains` return whether a given property is available.
`Set#empty` return whether the set in empty.
`Set#size` return the size of the Set.
`Set#get` return the set as an Array.
* `Set#contains` return whether a given property is available.
* `Set#empty` return whether the set in empty.
* `Set#size` return the size of the Set.
* `Set#get` return the set as an Array.
`Set#add` add an item to the Set.
`Set#remove` remove an item from the set.
`Set#clear` remove all items from the set.
* `Set#add` add an item to the Set.
* `Set#remove` remove an item from the set.
* `Set#clear` remove all items from the set.
`Set#union` return a new set that is the union of the set with another one.
`Set#intersect` return a new set that is the intersection of the set with another one.
`Set#difference` return a new set that is the difference of the set with another one.
* `Set#union` return a new set that is the union of the set with another one.
* `Set#intersect` return a new set that is the intersection of the set with another one.
* `Set#difference` return a new set that is the difference of the set with another one.
`Set#find` return an array with all items that match the predicate.
* `Set#find` return an array with all items that match the predicate.

@@ -44,0 +44,0 @@ ## License

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