Replaces use of Lodash isArray with built-in Array.isArray

This commit is contained in:
ecrmnn 2019-07-13 16:52:07 +02:00
parent c9bba9d1b1
commit 66e75b89ab
7 changed files with 7 additions and 9 deletions

View file

@ -7,7 +7,7 @@ function extractMinWidths(breakpoints) {
breakpoints = { min: breakpoints }
}
if (!_.isArray(breakpoints)) {
if (!Array.isArray(breakpoints)) {
breakpoints = [breakpoints]
}

View file

@ -7,7 +7,7 @@ export default function() {
return [
`.${e(`font-${modifier}`)}`,
{
'font-family': _.isArray(value) ? value.join(', ') : value,
'font-family': Array.isArray(value) ? value.join(', ') : value,
},
]
})