This package has been deprecated
Author message:
This package is no longer maintained
bianco.is-iterable
0.0.3 • Public • Published bianco.is-iterable


Usage
import isIterable from 'bianco.is-iterable'
const arr = [1, 2, 3]
isIterable(arr)
const gen = (function *() {
yield Math.random()
})()
isIterable(gen)
const lis = document.querySelectorAll('li')
isIterable(lis)
const obj = { foo: 'foo', bar: 'bar' }
isIterable(obj)
API
isIterable
returns true
if the object could be looped in a "for of" otherwise false
Package Sidebar
Install
Weekly Downloads