UNPKG

@nozbe/watermelondb

Version:

Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast

16 lines (12 loc) 285 B
// @flow export default function identicalArrays<T, V: T[]>(left: V, right: V): boolean { if (left.length !== right.length) { return false } for (let i = 0, len = left.length; i < len; i += 1) { if (left[i] !== right[i]) { return false } } return true }