angular-docs-cn/tools/api-builder/dart-package/services/arrayFromIterable.js

8 lines
151 B
JavaScript

'use strict';
module.exports = function arrayFromIterable(iterable) {
const arr = [];
for (let e of iterable) arr.push(e);
return arr;
};