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

Function toObject

code/new-context-api/public/app.js:680–686  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

678var propIsEnumerable = Object.prototype.propertyIsEnumerable;
679
680function toObject(val) {
681 if (val === null || val === undefined) {
682 throw new TypeError('Object.assign cannot be called with null or undefined');
683 }
684
685 return Object(val);
686}
687
688function shouldUseNative() {
689 try {

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected