CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
toString.js29 linesDownload Raw Back to lodash
1var baseToString = require('./_baseToString');2 3/**4 * Converts `value` to a string. An empty string is returned for `null`5 * and `undefined` values. The sign of `-0` is preserved.6 *7 * @static8 * @memberOf _9 * @since 4.0.010 * @category Lang11 * @param {*} value The value to convert.12 * @returns {string} Returns the converted string.13 * @example14 *15 * _.toString(null);16 * // => ''17 *18 * _.toString(-0);19 * // => '-0'20 *21 * _.toString([1, 2, 3]);22 * // => '1,2,3'23 */24function toString(value) {25  return value == null ? '' : baseToString(value);26}27 28module.exports = toString;29 
basant307/AI_Governance_Project · CoolFace