lib/Append an Object to An Array.js
// Append Object to Array Using splice()
Append Object to Array Using splice()
Append Object to Array Using splice ()
function insertObject(arr, obj) {
    let index = arr.length;
    arr.splice(index, 0, object);
    console.log(arr);
}
function insertObject ( arr , obj ) { let index = arr . length ; arr . splice ( index , 0 , object ) ; console . log ( arr ) ; }
Append Object to Array Using splice()
Append Object to Array Using splice ()
// find the last index // appending object to end of array