MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / toObject

Function toObject

code/higher-order-components/public/app.js:673–679  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

671var propIsEnumerable = Object.prototype.propertyIsEnumerable;
672
673function toObject(val) {
674 if (val === null || val === undefined) {
675 throw new TypeError('Object.assign cannot be called with null or undefined');
676 }
677
678 return Object(val);
679}
680
681function shouldUseNative() {
682 try {

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected