Replaces use of Lodash isArray with built-in Array.isArray
This commit is contained in:
parent
c9bba9d1b1
commit
66e75b89ab
7 changed files with 7 additions and 9 deletions
|
|
@ -7,7 +7,7 @@ function extractMinWidths(breakpoints) {
|
|||
breakpoints = { min: breakpoints }
|
||||
}
|
||||
|
||||
if (!_.isArray(breakpoints)) {
|
||||
if (!Array.isArray(breakpoints)) {
|
||||
breakpoints = [breakpoints]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue