MCPcopy Create free account
hub / github.com/Lobos/react-ui / keyMirror

Function keyMirror

docs/lib/react.js:18987–18998  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

18985 * @return {object}
18986 */
18987var keyMirror = function (obj) {
18988 var ret = {};
18989 var key;
18990 !(obj instanceof Object && !Array.isArray(obj)) ? "development" !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0;
18991 for (key in obj) {
18992 if (!obj.hasOwnProperty(key)) {
18993 continue;
18994 }
18995 ret[key] = key;
18996 }
18997 return ret;
18998};
18999
19000module.exports = keyMirror;
19001},{"156":156}],160:[function(_dereq_,module,exports){

Callers 1

react.jsFile · 0.85

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…