swc/bundler/tests/.cache/deno/64a0b34ed6ea49502cedd795909c020dd3fa51f0.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

12 lines
256 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_arrayFromIterator.js
export default function _arrayFromIterator(iter) {
var list = [];
var next;
while (!(next = iter.next()).done) {
list.push(next.value);
}
return list;
}