Skip to content

Commit a1e377b

Browse files
committed
refactor(tags): improve code readability
1 parent 2a0a319 commit a1e377b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/parseSemicolonDelimitedValues.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const _ = require('lodash');
55
function parseSemicolonDelimitedValues(value) {
66
return (_.isString(value) ? value : '')
77
.split(';')
8-
.map(Function.prototype.call, String.prototype.trim)
9-
.filter(Boolean);
8+
.map(v => v.trim())
9+
.filter(v => v.length);
1010
}
1111

1212
module.exports = parseSemicolonDelimitedValues;

0 commit comments

Comments
 (0)