JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3404124
  • Score
    100M100P100Q212307F

Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.

Package Exports

  • make-iterator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (make-iterator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

make-iterator NPM version

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 = [];

  // do stuff
  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.