MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / validObjectOrArray

Function validObjectOrArray

packages/wdio-config/src/utils.ts:4–5  ·  view source on GitHub ↗
(object: object)

Source from the content-addressed store, hash-verified

2import { DEFAULT_CONFIGS } from './constants.js'
3
4export const validObjectOrArray = (object: object): object is object | Array<unknown> => (Array.isArray(object) && object.length > 0) ||
5 (typeof object === 'object' && Object.keys(object).length > 0)
6
7/**
8 * Inject or strip headless CLI args from a single capability object.

Callers 2

mergeMethod · 0.85
utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…