MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium-ide / preprocessArray

Function preprocessArray

packages/side-runtime/src/preprocessors.ts:108–118  ·  view source on GitHub ↗
(interpolator: Interpolator)

Source from the content-addressed store, hash-verified

106export type Interpolator = (value: string, variables: Variables) => string
107
108export function preprocessArray(interpolator: Interpolator) {
109 return function preprocessArray(
110 items: [string, string][],
111 variables: Variables
112 ) {
113 return items.map((item) => [
114 interpolator(item[0], variables),
115 interpolator(item[1], variables),
116 ])
117 }
118}
119
120export function interpolateString(value: string, variables: Variables) {
121 if (!value) return ''

Callers 2

webdriver.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected