// Slice method - creates shallow copy let arr = ['a', 'b', 'c', 'd', 'e']; console.log(arr.slice(2)); // [ 'c', 'd', 'e' ] console.log(arr.slice(2, 4)); // [ 'c', 'd ...
What steps can reproduce the bug? In Node.js, if you attach custom properties to an array, console.log will print both the array elements and the extra properties — even if the array is empty. In Bun, ...