UNPKG

is-iterable

Version:

Checks if a given object is iterable

24 lines (14 loc) 397 B
# is-iterable [![Build Status](https://travis-ci.org/hemanth/is-iterable.svg?branch=master)](https://travis-ci.org/hemanth/is-iterable) > Checks if a given object is iterable. ## Install ``` $ npm install --save is-iterable ``` ## Usage ```js var isIterable = require('is-iterable'); isIterable([]); // true isIterable({}); // false ``` ## License MIT © [Hemanth.HM](http://h3manth.com)