js
array.push(...items)بتعدّل الـarray نفسها. الناتج هو الطول مش الـarray، فمتكتبش arr = arr.push(x).
البرهان
js
const arr = [1, 2];
console.log(arr.push(3, 4), arr);
const wrong = [1, 2].push(3);
console.log(wrong);النتيجة
4 [ 1, 2, 3, 4 ] 3