We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a0a319 commit a1e377bCopy full SHA for a1e377b
util/parseSemicolonDelimitedValues.js
@@ -5,8 +5,8 @@ const _ = require('lodash');
5
function parseSemicolonDelimitedValues(value) {
6
return (_.isString(value) ? value : '')
7
.split(';')
8
- .map(Function.prototype.call, String.prototype.trim)
9
- .filter(Boolean);
+ .map(v => v.trim())
+ .filter(v => v.length);
10
}
11
12
module.exports = parseSemicolonDelimitedValues;
0 commit comments