MCPcopy
hub / github.com/webpack/webpack / F

Function F

lib/config/defaults.js:250–254  ·  view source on GitHub ↗
(obj, prop, factory)

Source from the content-addressed store, hash-verified

248 * @returns {void}
249 */
250const F = (obj, prop, factory) => {
251 if (obj[prop] === undefined) {
252 obj[prop] = factory();
253 }
254};
255
256/**
257 * Sets a dynamic default value when undefined, by calling the factory function.

Callers 12

applyExperimentsDefaultsFunction · 0.70
applyCacheDefaultsFunction · 0.70
applySnapshotDefaultsFunction · 0.70
applyModuleDefaultsFunction · 0.70
applyOutputDefaultsFunction · 0.70
applyLoaderDefaultsFunction · 0.70
applyNodeDefaultsFunction · 0.70
applyPerformanceDefaultsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected