code: function argumentsAreShallowlyEqual(equalityCheck, prev, next) {
    if (prev === null || next === null || prev.length !== next.length) {
      return false;
    }
  
    // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
    const length = prev.length;
    for (let i = 0; i < length; i++) {
      if (!equalityCheck(prev[i], next[i])) {
        return false;
      }
    }
  
    return true;
  }
docs: direct copy of `areArgumentsShallowlyEqual` from reselect (https://github.com/reactjs/reselect)
  @param {Function} equalityCheck
  @param {any} prev
  @param {any} next
  @return {boolean}