MCPcopy
hub / github.com/meteor/meteor / add

Function add

packages/allow-deny/allow-deny.js:218–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 if (fields) {
217 const union = Object.create(null);
218 const add = names => names && names.forEach(name => union[name] = 1);
219 add(self._validators.fetch);
220 add(fields);
221 self._validators.fetch = Object.keys(union);

Callers 2

allow-deny.jsFile · 0.70

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected