MCPcopy Create free account
hub / github.com/reactjs/react-rails / is

Function is

lib/assets/react-source/development/react-server.js:3891–3901  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

3889 */
3890 /*eslint-disable no-self-compare*/
3891 function is(x, y) {
3892 // SameValue algorithm
3893 if (x === y) {
3894 // Steps 1-5, 7-10
3895 // Steps 6.b-6.e: +0 != -0
3896 return x !== 0 || 1 / x === 1 / y;
3897 } else {
3898 // Step 6.a: NaN == NaN
3899 return x !== x && y !== y;
3900 }
3901 }
3902 /*eslint-enable no-self-compare*/
3903
3904 /**

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected