Skip to content

Push if doesn't exist or remove if exist your element from array.

Notifications You must be signed in to change notification settings

aligos/pure-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pure-array

usage

Work for array object

const { Pure } = require('pure-array');

const yourArray = [1, 2, 3];

// try add existed number or doesn't
console.log(Pure(yourArray, 3))

It's still initial version, i just test for Array of number and Array of string

About

Push if doesn't exist or remove if exist your element from array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published