@corefunc/corefunc
    Preparing search index...

    Function arrayKeyFirst

    • Type Parameters

      • T

      Parameters

      • array: T[]

      Returns number | null

      arrayKeyFirst

      The arrayKeyFirst function returns the index of the first defined (non-hole) element in a JavaScript array, or null if the array is empty or contains only holes.