MCPcopy
hub / github.com/meteor/meteor / checking

Method checking

packages/check/match.js:484–495  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

482 }
483
484 checking(value) {
485 if (this._checkingOneValue(value)) {
486 return;
487 }
488
489 // Allow check(arguments, [String]) or check(arguments.slice(1), [String])
490 // or check([foo, bar], [String]) to count... but only if value wasn't
491 // itself an argument.
492 if (Array.isArray(value) || isArguments(value)) {
493 Array.prototype.forEach.call(value, this._checkingOneValue.bind(this));
494 }
495 }
496
497 _checkingOneValue(value) {
498 for (let i = 0; i < this.args.length; ++i) {

Callers 1

checkFunction · 0.80

Calls 3

_checkingOneValueMethod · 0.95
isArgumentsFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected