@lightprotocol/compressed-token - v0.23.0-beta.8
    Preparing search index...

    Function sliceLast

    • Splits the last element from an array.

      Useful for separating load transactions (parallel) from the final transfer transaction (sequential) returned by createTransferInterfaceInstructions.

      Type Parameters

      • T

      Parameters

      • items: T[]

      Returns { rest: T[]; last: T }

      { rest, last } where rest is everything before the last element and last is the last element.

      if the input array is empty.