iteratee.js 453 B

1234567891011121314
  1. define(['./underscore', './_baseIteratee'], function (underscore, _baseIteratee) {
  2. // External wrapper for our callback generator. Users may customize
  3. // `_.iteratee` if they want additional predicate/iteratee shorthand styles.
  4. // This abstraction hides the internal-only `argCount` argument.
  5. function iteratee(value, context) {
  6. return _baseIteratee(value, context, Infinity);
  7. }
  8. underscore.iteratee = iteratee;
  9. return iteratee;
  10. });