UNPKG

@phi-ag/rvt

Version:

Parse Revit file format

23 lines (22 loc) 514 B
export const isEqual = (lhs, rhs) => { if (lhs === rhs) return true; if (!lhs || !rhs) return false; if (lhs.length !== rhs.length) return false; for (let i = 0; i < lhs.length; i++) { if (lhs[i] !== rhs[i]) return false; } return true; }; export const isZero = (array) => { if (!array?.length) return false; for (let i = 0; i < array.length; i++) { if (array[i] !== 0) return false; } return true; };