You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 line
611 B

3 年之前
  1. var baseCreate = require('./_baseCreate'),
  2. baseLodash = require('./_baseLodash');
  3. /**
  4. * The base constructor for creating `lodash` wrapper objects.
  5. *
  6. * @private
  7. * @param {*} value The value to wrap.
  8. * @param {boolean} [chainAll] Enable explicit method chain sequences.
  9. */
  10. function LodashWrapper(value, chainAll) {
  11. this.__wrapped__ = value;
  12. this.__actions__ = [];
  13. this.__chain__ = !!chainAll;
  14. this.__index__ = 0;
  15. this.__values__ = undefined;
  16. }
  17. LodashWrapper.prototype = baseCreate(baseLodash.prototype);
  18. LodashWrapper.prototype.constructor = LodashWrapper;
  19. module.exports = LodashWrapper;