mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Make optionsToArray remove falsey values.
Former-commit-id: 5c82f8ab92f67bd35030320fae06811dbb8f442b
This commit is contained in:
2
build.js
2
build.js
@@ -863,7 +863,7 @@
|
|||||||
* @returns {Array} Returns the new converted array.
|
* @returns {Array} Returns the new converted array.
|
||||||
*/
|
*/
|
||||||
function optionToArray(value) {
|
function optionToArray(value) {
|
||||||
return value.match(/\w+=(.*)$/)[1].split(/, */);
|
return _.compact(value.match(/\w+=(.*)$/)[1].split(/, */));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user