how to push data to object of arrays code example Example: how to add object to array javascript var object = "Some Object" var array = [] array.push(object)