UNPKG

@tevm/actions

Version:

A typesafe library for writing forge scripts in typescript

10 lines (9 loc) 254 B
/** * Type guard to check if a value is an array of type T or a single value of type T * @template T * @param {T | T[] | readonly T[]} value * @returns {value is T[] | readonly T[]} */ export function isArray(value) { return Array.isArray(value) }