MCPcopy Create free account
hub / github.com/docker/getting-started / defineProperties

Function defineProperties

app/src/static/js/react-bootstrap.js:3349–3357  ·  view source on GitHub ↗
(target, props)

Source from the content-addressed store, hash-verified

3347
3348var createClass = function () {
3349 function defineProperties(target, props) {
3350 for (var i = 0; i < props.length; i++) {
3351 var descriptor = props[i];
3352 descriptor.enumerable = descriptor.enumerable || false;
3353 descriptor.configurable = true;
3354 if ("value" in descriptor) descriptor.writable = true;
3355 Object.defineProperty(target, descriptor.key, descriptor);
3356 }
3357 }
3358
3359 return function (Constructor, protoProps, staticProps) {
3360 if (protoProps) defineProperties(Constructor.prototype, protoProps);

Callers 1

react-bootstrap.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…