Skip to content

Commit 37bdf74

Browse files
author
Brad Cornes
committed
fix array equality check
1 parent dd553d9 commit 37bdf74

File tree

1 file changed

+4
-1
lines changed
  • packages/tailwindcss-class-names/src

1 file changed

+4
-1
lines changed

packages/tailwindcss-class-names/src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ function glob(pattern, options = {}) {
3232
}
3333

3434
function arraysEqual(arr1, arr2) {
35-
return JSON.stringify(arr1.sort()) === JSON.stringify(arr2.sort())
35+
return (
36+
JSON.stringify(arr1.concat([]).sort()) ===
37+
JSON.stringify(arr2.concat([]).sort())
38+
)
3639
}
3740

3841
export default async function getClassNames(

0 commit comments

Comments
 (0)