MCPcopy Create free account
hub / github.com/jamiebuilds/create-react-context / objectIs

Function objectIs

src/implementation.js:11–17  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

9// Inlined Object.is polyfill.
10// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
11function objectIs(x, y) {
12 if (x === y) {
13 return x !== 0 || 1 / x === 1 / (y: any);
14 } else {
15 return x !== x && y !== y;
16 }
17}
18
19type RenderFn<T> = (value: T) => Node;
20

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…