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.
18 lines
342 B
JavaScript
18 lines
342 B
JavaScript
9 years ago
|
/**
|
||
|
* Produces the result of coercing the unwrapped value to a string.
|
||
|
*
|
||
|
* @name toString
|
||
|
* @memberOf _
|
||
|
* @category Chain
|
||
|
* @returns {string} Returns the coerced string value.
|
||
|
* @example
|
||
|
*
|
||
|
* _([1, 2, 3]).toString();
|
||
|
* // => '1,2,3'
|
||
|
*/
|
||
|
function wrapperToString() {
|
||
|
return (this.value() + '');
|
||
|
}
|
||
|
|
||
|
module.exports = wrapperToString;
|