fix array equality check
parent
dd553d9d03
commit
37bdf7439d
|
@ -32,7 +32,10 @@ function glob(pattern, options = {}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function arraysEqual(arr1, arr2) {
|
function arraysEqual(arr1, arr2) {
|
||||||
return JSON.stringify(arr1.sort()) === JSON.stringify(arr2.sort())
|
return (
|
||||||
|
JSON.stringify(arr1.concat([]).sort()) ===
|
||||||
|
JSON.stringify(arr2.concat([]).sort())
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function getClassNames(
|
export default async function getClassNames(
|
||||||
|
|
Loading…
Reference in New Issue