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

Function toObject

code/communication/public/app.js:714–720  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

712var propIsEnumerable = Object.prototype.propertyIsEnumerable;
713
714function toObject(val) {
715 if (val === null || val === undefined) {
716 throw new TypeError('Object.assign cannot be called with null or undefined');
717 }
718
719 return Object(val);
720}
721
722function shouldUseNative() {
723 try {

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected