MCPcopy Create free account
hub / github.com/plotly/dash / toObject

Function toObject

dash/deps/prop-types@15.8.1.js:836–842  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

834var propIsEnumerable = Object.prototype.propertyIsEnumerable;
835
836function toObject(val) {
837 if (val === null || val === undefined) {
838 throw new TypeError('Object.assign cannot be called with null or undefined');
839 }
840
841 return Object(val);
842}
843
844function shouldUseNative() {
845 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…