MCPcopy
hub / github.com/prettier/prettier / map

Method map

src/common/ast-path.js:186–195  ·  view source on GitHub ↗
(callback, ...names)

Source from the content-addressed store, hash-verified

184 // callback function invocations are stored in an array and returned at
185 // the end of the iteration.
186 map(callback, ...names) {
187 const result = [];
188 this.each(
189 (path, index, value) => {
190 result[index] = callback(path, index, value);
191 },
192 ...names,
193 );
194 return result;
195 }
196
197 /**
198 * @param {...(

Callers 15

knip.config.jsFile · 0.45
jest.config.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
createOptionUsageTypeFunction · 0.45
createChoiceUsagesFunction · 0.45
getOptionsWithOppositesFunction · 0.45
createUsageFunction · 0.45
createPluginDefaultsFunction · 0.45

Calls 2

eachMethod · 0.95
callbackFunction · 0.50

Tested by

no test coverage detected