mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-05-26 21:24:57 +00:00
Move base-select into base
This commit is contained in:
7
resources/scripts/components/base/base-select/utils/arraysEqual.js
vendored
Normal file
7
resources/scripts/components/base/base-select/utils/arraysEqual.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export default function arraysEqual (array1, array2) {
|
||||
const array2Sorted = array2.slice().sort()
|
||||
|
||||
return array1.length === array2.length && array1.slice().sort().every(function(value, index) {
|
||||
return value === array2Sorted[index];
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user