@extremejs/utils - v1.0.0-beta.23
    Preparing search index...

    Function first

    • It will return the first element of the value.

      Type Parameters

      • Value extends string | unknown[]

      Parameters

      Returns FirstT<Value>

      1.0.0

      first([0, 1, 2, 3, 4, 5]); // => 0
      
      first("012345"); // => "0"