Use lodash for object detection

pull/10616/head
Andrew Watkins 2017-10-05 17:45:02 -07:00
parent 1656d2e8f2
commit 354d318d69
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ const dashtime = ranges => {
}
const normalized = ranges.filter(r => {
if (r !== Object(r)) {
if (!_.isObject(r)) {
return false
}