Function isArray2D

  • Type guard function that checks if an array is a 2D array of a specific type.

    Type Parameters

    • T

      The type of the elements to check for.

    Parameters

    • array: unknown[][]

      The array to check.

    Returns array is T[][]

    boolean indicating whether the 2D array is of the specified type.