1.1.4 • Published 2 years ago

arrays-magic v1.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Arrays magic

This repository is for testing how to create npm package.

Usage

Configuration options can also be set in package.json's config.readme.

# import
import removeArrayDuplicates from 'arrays-magic'

# use
# Return a array without duplicates
const randomNumberArray = [1, 2, 3, 1, 4, 1, 2, 5, 3, 4];
const uniqueNums = removeArrayDuplicates(randomNumberArray);

# Return a boolean, remove undefined and null values and leave false and 0 as a falsy values
const randomNumberArray = [1, 2, 3, undefined, null];
const isArrayWithoutValues = isArrayEmpty(randomNumberArray);

Installation

npm install arrays-magic
1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.0

2 years ago