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

Function toObject

code/controlled-uncontrolled/public/app.js:643–649  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

641var propIsEnumerable = Object.prototype.propertyIsEnumerable;
642
643function toObject(val) {
644 if (val === null || val === undefined) {
645 throw new TypeError('Object.assign cannot be called with null or undefined');
646 }
647
648 return Object(val);
649}
650
651function shouldUseNative() {
652 try {

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected