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

Function toObject

code/presentational-and-container/public/app.js:552–558  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

550var propIsEnumerable = Object.prototype.propertyIsEnumerable;
551
552function toObject(val) {
553 if (val === null || val === undefined) {
554 throw new TypeError('Object.assign cannot be called with null or undefined');
555 }
556
557 return Object(val);
558}
559
560function shouldUseNative() {
561 try {

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected