UNPKG

gf-js

Version:

Attach most of function from lodash to Javascript GeneratorFunction and Array.

12 lines (10 loc) 226 B
const GF = require('../index'); for(let item of GF.repeatValue(3,100)){ console.log(item); } for(let item of [1,2].repeat(5)){ console.log(item); } for(let item of [1,2].repeat()){ console.log(item); }