lines.js 112 Bytes Raw Blame History Permalink 1 2 3 4 module.exports = function lines(str) { if (str == null) return []; return String(str).split(/\r\n?|\n/); };