TypeError: push is not a function in JavaScript [Solved] | bobbyhadz
The "push is not a function" error occurs when the `push()` method is called on a value that is not an array. To solve the error, convert the value to an array before calling the method, or make sure to only call the `push()` method on valid arrays.
bobbyhadz.com