UNPKG

@react-navigation/core

Version:

Core utilities for building navigators

21 lines (20 loc) 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRecordEqual = isRecordEqual; /** * Compare two records with primitive values as the content. */ function isRecordEqual(a, b) { if (a === b) { return true; } const aKeys = Object.keys(a); const bKeys = Object.keys(b); if (aKeys.length !== bKeys.length) { return false; } return aKeys.every(key => a[key] === b[key]); } //# sourceMappingURL=isRecordEqual.js.map