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

Function all

app/src/static/js/react-bootstrap.js:2416–2442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2414}
2415
2416function all() {
2417 for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {
2418 validators[_key] = arguments[_key];
2419 }
2420
2421 function allPropTypes() {
2422 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2423 args[_key2] = arguments[_key2];
2424 }
2425
2426 var error = null;
2427 validators.forEach(function (validator) {
2428 if (error != null) {
2429 return;
2430 }
2431
2432 var result = validator.apply(undefined, args);
2433
2434 if (result != null) {
2435 error = result;
2436 }
2437 });
2438 return error;
2439 }
2440
2441 return (0, _createChainableTypeChecker2.default)(allPropTypes);
2442}
2443
2444module.exports = exports['default'];
2445

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected