1 line
94 B
JavaScript
1 line
94 B
JavaScript
module.exports = words = (str, pattern = /[^a-zA-Z-]+/) => str.split(pattern).filter(Boolean); |