You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
6 years ago
|
var baseSetToString = require('./_baseSetToString'),
|
||
|
shortOut = require('./_shortOut');
|
||
|
|
||
|
/**
|
||
|
* Sets the `toString` method of `func` to return `string`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to modify.
|
||
|
* @param {Function} string The `toString` result.
|
||
|
* @returns {Function} Returns `func`.
|
||
|
*/
|
||
|
var setToString = shortOut(baseSetToString);
|
||
|
|
||
|
module.exports = setToString;
|