MCPcopy
hub / github.com/webpack/webpack / emptyFunction

Method emptyFunction

lib/RuntimeTemplate.js:374–376  ·  view source on GitHub ↗

* Returns empty function code. * @returns {string} empty function code

()

Source from the content-addressed store, hash-verified

372 * @returns {string} empty function code
373 */
374 emptyFunction() {
375 return this.supportsArrowFunction() ? "x => {}" : "function() {}";
376 }
377
378 /**
379 * Guards an access/call on `object` with optional chaining when supported,

Callers 2

renderBootstrapMethod · 0.80
generateMethod · 0.80

Calls 1

supportsArrowFunctionMethod · 0.95

Tested by

no test coverage detected