API

Helper class for working with arrays when loading the glTF asset

Index
  • Gets an item from the given array.

    Type Parameters

    • T

    Parameters

    • context: string

      The context when loading the asset

    • array: ArrayLike<T> | undefined

      The array to get the item from

    • index: number | undefined

      The index to the array

    Returns T

    The array item

  • Gets an item from the given array or returns null if not available.

    Type Parameters

    • T

    Parameters

    • array: ArrayLike<T> | undefined

      The array to get the item from

    • index: number | undefined

      The index to the array

    Returns Nullable<T>

    The array item or null