# get-iterable **Repository Path**: mirrors_floatdrop/get-iterable ## Basic Information - **Project Name**: get-iterable - **Description**: Get a iterable as a array of items - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # get-iterable [![Build Status](https://travis-ci.org/floatdrop/get-iterable.svg?branch=master)](https://travis-ci.org/floatdrop/get-iterable) > Get a iterable as a array See [`Array.from`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/from) for more. ## Install ``` $ npm install --save get-iterable ``` ## Usage ```js const getStream = require('get-iterable'); function * generator() { yield 1; yield 2; yield 3; } const arr = getIterable(generator()); console.log(arr); /* [1,2,3] */ }); ``` ## API ### getIterable(iterable) Get the iterable as a array. ## Related - [get-stream](https://github.com/sindresorhus/get-stream) - Get stream as a string or buffer - [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer ## License MIT © [Vsevolod Strukchisnky](http://github.com/floatdrop/get-iterable)