Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | /** * Check if two lookup tables match * * @param {LUT} a A lookup table function * @param {LUT} b Another lookup table function * @return {boolean} Whether or not they match * @memberof rendering */ export default function (a: any, b: any) { // If undefined, they are equal if (!a && !b) { return true; } // If one is undefined, not equal if (!a || !b) { return false; } // Check the unique ids return a.id === b.id; } |