import isEmpty from 'lodash/isEmpty' ; import isEqual from 'lodash/isEqual' ; import xorWith from 'lodash/xorWith' ; export const isArrayEqual = ( x , y ) : boolean => isEmpty ( xorWith ( x , y , isEqual ) ) ;