toString.js 231 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 /** * Typecast a value to a String, using an empty string value for null or * undefined. */ function toString(val){ return val == null ? '' : val.toString(); } module.exports = toString;