_setToString.js 392 B

1234567891011121314
  1. var baseSetToString = require('./_baseSetToString'),
  2. shortOut = require('./_shortOut');
  3. /**
  4. * Sets the `toString` method of `func` to return `string`.
  5. *
  6. * @private
  7. * @param {Function} func The function to modify.
  8. * @param {Function} string The `toString` result.
  9. * @returns {Function} Returns `func`.
  10. */
  11. var setToString = shortOut(baseSetToString);
  12. module.exports = setToString;