Sha256: 8a59299fc24613f6fdd2c79a52a6a4ce8eee2928b18af5f5909b35e54247b534
Contents?: true
Size: 386 Bytes
Versions: 14
Compression:
Stored size: 386 Bytes
Contents
/** * Converts `value` to a string if it is not one. An empty string is returned * for `null` or `undefined` values. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { if (typeof value == 'string') { return value; } return value == null ? '' : (value + ''); } module.exports = baseToString;
Version data entries
14 entries across 7 versions & 1 rubygems