MCPcopy Create free account
hub / github.com/bugy/script-server / mapArrayWrapper

Function mapArrayWrapper

web-src/tests/unit/test_utils.js:140–150  ·  view source on GitHub ↗
(arrayWrapper, mapFunction)

Source from the content-addressed store, hash-verified

138}
139
140export const mapArrayWrapper = (arrayWrapper, mapFunction) => {
141 const result = []
142
143 for (let i = 0; i < arrayWrapper.length; i++) {
144 const element = arrayWrapper.at(i)
145
146 result.push(mapFunction(element))
147 }
148
149 return result
150}
151
152export const awaitVisible = async (element, maxTimeout) => {
153 for (let awaited = 0; awaited < maxTimeout; awaited += 10) {

Callers 2

getOptionTextsFunction · 0.90
verifyChipsFunction · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected