X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funderscore.string%2Fhelper%2FmakeString.js;fp=node_modules%2Funderscore.string%2Fhelper%2FmakeString.js;h=3b279abd327f7cff402082770a3bceae312aeee1;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/underscore.string/helper/makeString.js b/node_modules/underscore.string/helper/makeString.js new file mode 100644 index 000000000..3b279abd3 --- /dev/null +++ b/node_modules/underscore.string/helper/makeString.js @@ -0,0 +1,7 @@ +/** + * Ensure some object is a coerced to a string + **/ +module.exports = function makeString(object) { + if (object == null) return ''; + return '' + object; +};