No Description

_cb.js 463B

123456789101112
  1. var underscore = require('./underscore.js');
  2. var _baseIteratee = require('./_baseIteratee.js');
  3. var iteratee = require('./iteratee.js');
  4. // The function we call internally to generate a callback. It invokes
  5. // `_.iteratee` if overridden, otherwise `baseIteratee`.
  6. function cb(value, context, argCount) {
  7. if (underscore.iteratee !== iteratee) return underscore.iteratee(value, context);
  8. return _baseIteratee(value, context, argCount);
  9. }
  10. module.exports = cb;