• ensures given as an array (see ensureArray) and then it checks isArrayOf. It returns the array if it passes the check, or null otherwise.

    Type Parameters

    • T
    • L = unknown

    Parameters

    • given: any
    • predicate: ((x) => x is T)
        • (x): x is T
        • Parameters

          Returns x is T

    Returns T[] | null

    See

    • ensureArray
    • isArrayOf