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.

14 regels
392 B

4 jaren geleden
  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;