addtoarray (npm): add the object to array
Keywords: no