MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / toArray

Method toArray

javascript/selenium-webdriver/bidi/index.js:238–244  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

236 */
237 async subscribe(events, browsingContexts) {
238 function toArray(arg) {
239 if (arg === undefined) {
240 return []
241 }
242
243 return Array.isArray(arg) ? [...arg] : [arg]
244 }
245
246 const eventsArray = toArray(events)
247 const contextsArray = toArray(browsingContexts)

Callers 15

jquery.min.jsFile · 0.80
onlyBlackMethod · 0.80
onlyWhiteMethod · 0.80
onlyBlackMethod · 0.80
onlyWhiteMethod · 0.80
safelyCallMethod · 0.80
ignoreForDriverMethod · 0.80
mainMethod · 0.80
visitMethod · 0.80
hashCodeMethod · 0.80

Calls

no outgoing calls

Tested by 8

onlyBlackMethod · 0.64
onlyWhiteMethod · 0.64
onlyBlackMethod · 0.64
onlyWhiteMethod · 0.64
safelyCallMethod · 0.64
ignoreForDriverMethod · 0.64