Skip to content
Subhajit Sahu edited this page Dec 8, 2022 · 12 revisions

Get object without its first entry (default order).

Similar: head, tail.


function tail(x)
// x: an object
const object = require('extra-object');

object.tail({a: 1, b: 2, c: 3});
// → { b: 2, c: 3 }

object.tail({a: 1});
// → {}


References

Clone this wiki locally