FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

aligos/pure-array: Push if doesn't exist or remove if exist your element from array. · GitHub

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL