Skip to content

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

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors