• Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

    Returns

    Parameters

    • instance: string

    Returns null

  • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

    Returns

    Parameters

    • instance: string
    • allowString: false

    Returns null

  • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

    Returns

    Parameters

    • instance: string
    • allowString: true

    Returns string

  • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

    Returns

    Type Parameters

    • T

    Parameters

    • instance: Iterable<T> | ArrayLike<T>
    • Optional allowString: boolean

    Returns Iterable<T> | null

  • Ensures an object is iterable if possible. Returns null if unable to convert to iterable.

    Returns

    Type Parameters

    • T = unknown

    Parameters

    • instance: unknown
    • Optional allowString: boolean

    Returns Iterable<T> | null

Generated using TypeDoc