How to use value-equal - 3 common examples

To help you get started, we’ve selected a few value-equal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NervJS / taro / packages / taro-router / src / history / LocationUtils.ts View on Github external
const locationsAreEqual = (a, b) => a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && valueEqual(a.state, b.state)
github sikidamjanovic / cowrite / node_modules / history / esm / history.js View on Github external
function locationsAreEqual(a, b) {
  return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && valueEqual(a.state, b.state);
}
github ReactTraining / history / modules / LocationUtils.js View on Github external
export const locationsAreEqual = (a, b) =>
  a.pathname === b.pathname &&
  a.search === b.search &&
  a.hash === b.hash &&
  a.key === b.key &&
  valueEqual(a.state, b.state);

value-equal

Are these two JavaScript values equal?

MIT
Latest version published 6 years ago

Package Health Score

65 / 100
Full package analysis

Popular value-equal functions