Tagged: concat

0

push vs concat vs spread

push, concat and spread all of them are object/array manipulation methods. push – mutates the original data var a = [1, 2, 3]; a.push(9); // returns 4 console.log (a); // [1, 2, 3, 9]...