0.0.3 • Published 4 years ago
js-is-array v0.0.3
What is it?
This package was designed with the goal of fast and easy type checking on an array. With the help of this package, you have the opportunity to check from 1 to an infinite number of elements for an array type.
How to use that?
Use: In your code just write import line:
const isArray = require('js-is-array');
And use isArray as a function. For example:
const isArray = require('js-is-array'); // import package
isArray([]) // true
isArray(1) // false
isArray([1, 2, 3], ['some', 'elem']) // [true, true]
isArray(1, [1], 3) // [false, true, false]
Change logs
- v0.0.3:
- Add README.md
- Refactor module code
- v0.0.2:
- Rewrite function to get multiply params for checking
- v0.0.1:
- Init files