wrapperToString.js 342 B

1234567891011121314151617
  1. /**
  2. * Produces the result of coercing the unwrapped value to a string.
  3. *
  4. * @name toString
  5. * @memberOf _
  6. * @category Chain
  7. * @returns {string} Returns the coerced string value.
  8. * @example
  9. *
  10. * _([1, 2, 3]).toString();
  11. * // => '1,2,3'
  12. */
  13. function wrapperToString() {
  14. return (this.value() + '');
  15. }
  16. module.exports = wrapperToString;