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