Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
set-component
Advanced tools
Generic Set container
$ component install component/set
var Set = require('set');
var set = new Set;
set.add('foo');
set.add('foo');
set.add({ some: 'object' });
set.remove('foo');
set.values();
// => [{ some: 'object' }]
Create a new Set
.
Create a new Set
with values
array. Duplicates will be removed.
Add value
to the set.
Remove value
from the set, returning true when present,
otherwise returning false.
Check if value
is present.
Return an array of values.
Aliased as .toJSON()
.
Return the set size.
Empty the set and return the old values array.
Check if the set is empty.
Perform a union with set
and return a new Set
.
Perform an intersection with set
and return a new Set
.
MIT
FAQs
Set container
We found that set-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.