lines.js 109 B

1234
  1. module.exports = function lines(str) {
  2. if (str == null) return [];
  3. return String(str).split(/\r?\n/);
  4. };