Last change
on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
392 bytes
|
Line | |
---|
1 | var baseSetToString = require('./_baseSetToString'),
|
---|
2 | shortOut = require('./_shortOut');
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Sets the `toString` method of `func` to return `string`.
|
---|
6 | *
|
---|
7 | * @private
|
---|
8 | * @param {Function} func The function to modify.
|
---|
9 | * @param {Function} string The `toString` result.
|
---|
10 | * @returns {Function} Returns `func`.
|
---|
11 | */
|
---|
12 | var setToString = shortOut(baseSetToString);
|
---|
13 |
|
---|
14 | module.exports = setToString;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.