MCPcopy Create free account
hub / github.com/microsoft/SandDance / toObject

Function toObject

docs/tests/v2/es6/js/sanddance.js:7555–7561  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

7553var propIsEnumerable = Object.prototype.propertyIsEnumerable;
7554
7555function toObject(val) {
7556 if (val === null || val === undefined) {
7557 throw new TypeError('Object.assign cannot be called with null or undefined');
7558 }
7559
7560 return Object(val);
7561}
7562
7563function shouldUseNative() {
7564 try {

Callers 1

sanddance.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected