mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
|
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;
|