Options
All
  • Public
  • Public/Protected
  • All
Menu

Module array/tail

Index

References

Functions

References

Renames and re-exports tail

Functions

  • tail(list: string): string
  • tail<T>(list: ArrayLike<T>): T[]
  • Returns all but the first element of the given array.

    example
     tail(['fi', 'fo', 'fum']);  //=> ['fo', 'fum']
    tail([]); //=> []

    Parameters

    • list: string

    Returns string

  • Returns all but the first element of the given array.

    example
     tail(['fi', 'fo', 'fum']);  //=> ['fo', 'fum']
    tail([]); //=> []

    Type parameters

    • T

    Parameters

    • list: ArrayLike<T>

    Returns T[]

Generated using TypeDoc