MCPcopy
hub / github.com/less/less.js / map

Method map

packages/less/lib/less/tree/unit.js:84–94  ·  view source on GitHub ↗

@param {(atomicUnit: string, denominator: boolean) => string} callback

(callback)

Source from the content-addressed store, hash-verified

82
83 /** @param {(atomicUnit: string, denominator: boolean) => string} callback */
84 map(callback) {
85 let i;
86
87 for (i = 0; i < this.numerator.length; i++) {
88 this.numerator[i] = callback(this.numerator[i], false);
89 }
90
91 for (i = 0; i < this.denominator.length; i++) {
92 this.denominator[i] = callback(this.denominator[i], true);
93 }
94 }
95
96 /** @returns {{ [groupName: string]: string }} */
97 usedUnits() {

Callers 15

usedUnitsMethod · 0.95
makeJobFunction · 0.80
Gruntfile.cjsFile · 0.80
transform-tree.jsFile · 0.80
visitRulesetMethod · 0.80
extendSelectorMethod · 0.80
color.jsFile · 0.80
list.jsFile · 0.80
styleExpressionFunction · 0.80
minMaxFunction · 0.80
callMethod · 0.80
mixinElementsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected