Nightclub Party Music

    just-tail
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.2 • Public • Published

    just-tail

    Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

    🍦 Try it

    npm install just-tail
    yarn add just-tail

    Return all but the first element of an array

    import tail from 'just-tail';
    
    tail([1, 2, 3, 4, 5]); // [2, 3, 4, 5]
    tail([{a: 1}, {b: 1}, {c: 1}]); // [{b: 1}, {c: 1}]
    tail([true, false, [true, false]]); // [false, [true, false]]
    tail([]); // []
    tail(); // undefined
    tail(null); // undefined
    tail(undefined); // undefined

    Install

    npm i just-tail

    DownloadsWeekly Downloads

    1

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    3.98 kB

    Total Files

    8

    Last publish

    Collaborators

    • angus-c