const { Pure } = require('pure-array');
const yourArray = [1, 2, 3];
// try add existed number or doesn't
console.log(Pure(yourArray, 3))
-
Notifications
You must be signed in to change notification settings - Fork 0
aligos/pure-array
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Push if doesn't exist or remove if exist your element from array.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published