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

Function omitProps

app/src/static/js/react-bootstrap.js:6897–6906  ·  view source on GitHub ↗
(props, propTypes)

Source from the content-addressed store, hash-verified

6895var modalManager = new _ModalManager.default();
6896
6897function omitProps(props, propTypes) {
6898 var keys = Object.keys(props);
6899 var newProps = {};
6900 keys.map(function (prop) {
6901 if (!Object.prototype.hasOwnProperty.call(propTypes, prop)) {
6902 newProps[prop] = props[prop];
6903 }
6904 });
6905 return newProps;
6906}
6907/**
6908 * Love them or hate them, `<Modal />` provides a solid foundation for creating dialogs, lightboxes, or whatever else.
6909 * The Modal component renders its `children` node in front of a backdrop component.

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…