Exploring the functionalities of Array.splice().
deleteCount: A whole number indicating the quantity of old array elements to eliminate.
Understood. It seems clear. I aim to extract the final 4 items in the array. I trust that refers to elements?
arr.splice(<start>, deleteCount<how-many-to-remove>):
// {0 - 8} is a demo of object positioning
let obArr = [{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}]
// Begin from the end and eliminate four items:
obArr.splice(-1, 4)
console.log(obArr) // not the outcome as anticipated.
console.log(obArr) // expected output: [{0}, {1}, {2}, {3}]