DocSpace-client/packages/asc-web-components/utils/array.js
2021-02-24 17:42:09 +03:00

8 lines
233 B
JavaScript

import differenceWith from "lodash/differenceWith";
import isEqual from "lodash/isEqual";
import isEmpty from "lodash/isEmpty";
export const isArrayEqual = (arr1, arr2) => {
return isEmpty(differenceWith(arr1, arr2, isEqual));
};