Version 1
[yaffs-website] / node_modules / underscore.string / helper / makeString.js
diff --git a/node_modules/underscore.string/helper/makeString.js b/node_modules/underscore.string/helper/makeString.js
new file mode 100644 (file)
index 0000000..3b279ab
--- /dev/null
@@ -0,0 +1,7 @@
+/**
+ * Ensure some object is a coerced to a string
+ **/
+module.exports = function makeString(object) {
+  if (object == null) return '';
+  return '' + object;
+};