MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / toObject

Function toObject

code/event-handlers/public/app.js:649–655  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

647var propIsEnumerable = Object.prototype.propertyIsEnumerable;
648
649function toObject(val) {
650 if (val === null || val === undefined) {
651 throw new TypeError('Object.assign cannot be called with null or undefined');
652 }
653
654 return Object(val);
655}
656
657function shouldUseNative() {
658 try {

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected