MCPcopy
hub / github.com/ampproject/amphtml / if

Method if

testing/test-config.js:111–114  ·  view source on GitHub ↗

* @param {function():boolean} fn

(fn)

Source from the content-addressed store, hash-verified

109 * @param {function():boolean} fn
110 */
111 if(fn) {
112 this.ifMatchers.push(fn);
113 return this;
114 }
115
116 isSkipped() {
117 for (let i = 0; i < this.skipMatchers.length; i++) {

Callers 7

ifModuleBuildMethod · 0.95
ifChromeMethod · 0.95
ifEdgeMethod · 0.95
ifFirefoxMethod · 0.95
ifSafariMethod · 0.95
ifIosMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected