src/join-arrays-smart.js
function isSameValue(a, b) {
  const [propA, propB] = [a, b].map(value => (
    isArray(value) ? [...value].sort() : value
  ));

  return isEqual(propA, propB);
}
function isSameValue(a, b) {
  const [propA, propB] = [a, b].map(value => (
    isArray(value) ? [...value].sort() : value
  ));

  return isEqual(propA, propB);
}
function isSameValue ( a , b ) { const [ propA , propB ] = [ a , b ] . map ( value => ( isArray ( value ) ? [ ... value ] . sort ( ) : value ) ) ; return isEqual ( propA , propB ) ; }
Check equality of two values using lodash's isEqual
Arrays need to be sorted for equality checking
but clone them first so as not to disrupt the sort order in tests
Check equality of two values using lodash s isEqual Arrays need to be sorted for equality checking but clone them first so as not to disrupt the sort order in tests