Use lodash for object detection
parent
1656d2e8f2
commit
354d318d69
|
@ -6,7 +6,7 @@ const dashtime = ranges => {
|
|||
}
|
||||
|
||||
const normalized = ranges.filter(r => {
|
||||
if (r !== Object(r)) {
|
||||
if (!_.isObject(r)) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue