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

Function is

lib/assets/react-source/development/react.js:13244–13247  ·  view source on GitHub ↗

* inlined Object.is polyfill to avoid requiring consumers ship their own * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is

(x, y)

Source from the content-addressed store, hash-verified

13242 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
13243 */
13244 function is(x, y) {
13245 return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
13246 ;
13247 }
13248
13249 var objectIs = typeof Object.is === 'function' ? Object.is : is;
13250

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected