MCPcopy
hub / github.com/NervJS/taro / map

Method map

packages/taro-extend/types/index.d.ts:168–168  ·  view source on GitHub ↗

* Iterate through elements of collection and return all results of running the iterator function, with null and undefined values filtered out. * @param collection * @param fn * @return

(collection: any[], fn: (item: any, index: number) => any)

Source from the content-addressed store, hash-verified

166 * @return
167 */
168 map(collection: any[], fn: (item: any, index: number) => any): any[];
169
170 /**
171 * Alias for the native JSON.parse method.

Callers 15

getCurrentPagesFunction · 0.65
setMethod · 0.65
createRouterFunction · 0.65
parsePageOrCompFunction · 0.65
renderMethod · 0.65
safeExecuteFunction · 0.65
stringifyFunction · 0.65
getSingleSelectorFunction · 0.65
getMultiSelectorFunction · 0.65
nodeToHtmlFunction · 0.65
parseHtmlNodeFunction · 0.65
chooseImageFunction · 0.65

Calls

no outgoing calls

Tested by 15

testValidFunction · 0.52
testInvalidFunction · 0.52
testInvalidsFunction · 0.52
runFunction · 0.52
testByIdFunction · 0.52
parseStyle2StringFunction · 0.52
buildAppFunction · 0.52
getCodeFunction · 0.52
CellFunction · 0.52
parseStyle2StringFunction · 0.52
checkChunksExistFunction · 0.52
readdirWithFileTypesFunction · 0.52