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

Function getPropsWithDefaults

docs/app/js/sanddance-app.js:26340–26347  ·  view source on GitHub ↗
(defaultProps, propsWithoutDefaults)

Source from the content-addressed store, hash-verified

26338 */ parcelHelpers.export(exports, "getPropsWithDefaults", ()=>getPropsWithDefaults);
26339var _tslib = require("tslib");
26340function getPropsWithDefaults(defaultProps, propsWithoutDefaults) {
26341 var props = (0, _tslib.__assign)({}, propsWithoutDefaults);
26342 for(var _i = 0, _a = Object.keys(defaultProps); _i < _a.length; _i++){
26343 var key = _a[_i];
26344 if (props[key] === undefined) props[key] = defaultProps[key];
26345 }
26346 return props;
26347}
26348
26349},{"tslib":"01Tx1","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"bsoKL":[function(require,module,exports) {
26350var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected