1.0.3 • Published 7 years ago

val-arr v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

val-arr

A simple tool to validate an array. It accpets two params (first is required and the second is optional). If the first param is an array it would return true. The second param is to validate the length, if not passed would validate against at least one element of the array.

Below are some use cases

valArr([]) // false

valArr([], 0) // true

valArr(1) // true

valArr({}) // false

valArr() // false

valArr(null) // false

valArr(undefined) // false

valArr(NaN) // false

valArr('') // false

valArr('fhdhfjfg') // false

valArr(true) // false

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago