code: function isSameValue(a, b) {
    const [propA, propB] = [a, b].map(value => (
      isArray(value) ? [...value].sort() : value
    ));
  
    return isEqual(propA, propB);
  }
docs: 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