5 lines
109 B
JavaScript
5 lines
109 B
JavaScript
![]() |
module.exports = function lines(str) {
|
||
|
if (str == null) return [];
|
||
|
return String(str).split(/\r?\n/);
|
||
|
};
|