anorgatarrak-wordpress-theme/node_modules/underscore.string/lines.js

5 lines
112 B
JavaScript
Raw Normal View History

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