Sha256: bba94dbb89a34154ce6afb46e07a6bbcfc4928053f46300ba4a9dfd7ab2a94fc
Contents?: true
Size: 580 Bytes
Versions: 276
Compression:
Stored size: 580 Bytes
Contents
var baseToString = require('./_baseToString'); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString;
Version data entries
276 entries across 274 versions & 30 rubygems