This package has been deprecated
Author message:
This package is no longer maintained
bianco.is-iterable
0.0.3 • Public • Published bianco.is-iterable
![Build Status](https://img.shields.io/travis/biancojs/is-iterable.svg?style=flat-square)
![MIT License](http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square)
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
Dependencies (0)
Dev Dependencies (7)
Package Sidebar
Install
Weekly Downloads