MCPcopy Index your code
hub / github.com/RubyLouvre/anu / getKeyFromID

Function getKeyFromID

test/react.js:1403–1405  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1401 // Use non-numeric keys to prevent V8 performance issues:
1402 // https://github.com/facebook/react/pull/7232
1403 var getKeyFromID = function (id) {
1404 return '.' + id;
1405 };
1406 var getIDFromKey = function (key) {
1407 return parseInt(key.substr(1), 10);
1408 };

Callers 1

react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected