UNPKG

@tsdotnet/collection-base

Version:

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/collection-base/blob/master/LICENSE) ![npm-publish](https://github.com/tsdotnet/collection-base/workflows/npm-publish/badge.svg) [![npm ve

12 lines (11 loc) 352 B
/*! * @author electricessence / https://github.com/electricessence/ * @license MIT */ /** * Ensures an iterable from an `ArrayLike` object. * If is an instance of an Array, will return the array directly. * @param {ArrayLike<T>} source * @return {Iterable<T>} */ export default function arrayLikeIterable<T>(source: ArrayLike<T>): Iterable<T>;