@f/is-iterable
v1.0.1
Published
Check if iterable.
Downloads
44
Readme
is-iterable
Check if iterable.
Installation
$ npm install @f/is-iterable
Usage
var isIterable = require('@f/is-iterable')
isIterable('foo') // => true
isIterable([1, 2, 3]) // => true
isIterable(1) // => false
API
isIterable(obj)
obj
- Object to check if iterable.
Returns: Boolean indicating iterable.
License
MIT