UNPKG

@react-navigation/core

Version:

Core utilities for building navigators

20 lines (19 loc) 456 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isArrayEqual = isArrayEqual; /** * Compare two arrays with primitive values as the content. * We need to make sure that both values and order match. */ function isArrayEqual(a, b) { if (a === b) { return true; } if (a.length !== b.length) { return false; } return a.every((it, index) => it === b[index]); } //# sourceMappingURL=isArrayEqual.js.map