dropRight
Creates a new array with n
elements removed from the right.
- Use
Array.prototype.slice()
to remove the specified number of elements from the right. - Omit the last argument,
n
, to use a default value of1
.
Creates a new array with n
elements removed from the right.
Array.prototype.slice()
to remove the specified number of elements from the right.n
, to use a default value of 1
.