nl_tokens: direct copy of areArgumentsShallowlyEqual from reselect ( https : // github . com / reactjs / reselect )
pl_tokens: 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 < <mask> ; i ++ ) { if ( ! equalityCheck ( prev [ i ] , next [ i ] ) ) { return false ; } } return true ; }