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

Function identity

lib/assets/react-source/development/react.js:29234–29236  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

29232 // Helper function to allow the creation of anonymous functions which do not
29233 // have .name set to the name of the variable being assigned to.
29234 function identity(fn) {
29235 return fn;
29236 }
29237
29238 var ReactPropTypeLocationNames;
29239 if (process.env.NODE_ENV !== 'production') {

Callers 1

createClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected