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

    Function last

    • It will return the last element of the value.

      Type Parameters

      • Value extends string | unknown[]

      Parameters

      Returns LastT<Value>

      1.0.0

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