make-iterator
Convert an argument into a valid iterator. Based on the .makeIterator()
implementation in mout https://github.com/mout/mout.
Install
Install with npm:
npm i make-iterator --save-dev
Run tests
npm test
Usage
var makeIterator = require('make-iterator');
function amazingFn(arr, cb, thisArg) {
cb = makeIterator(cb, thisArg);
var res = [];
return res;
}
Author
Jon Schlinkert
License
Copyright (c) 2012, 2013 moutjs team and contributors (http://moutjs.com)
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 09, 2014.