Version 1
[yaffs-website] / node_modules / underscore.string / lines.js
diff --git a/node_modules/underscore.string/lines.js b/node_modules/underscore.string/lines.js
new file mode 100644 (file)
index 0000000..40b11cc
--- /dev/null
@@ -0,0 +1,4 @@
+module.exports = function lines(str) {
+  if (str == null) return [];
+  return String(str).split(/\r\n?|\n/);
+};