No Description

_cb.js 418B

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