* The :js:meth:`Array.push` method adds the specified elements to the end of * a :js:class:`PyMutableSequence`. * @param elts The element(s) to add to the end of the :js:class:`PyMutableSequence`. * @returns The new length property of the object upon which the method was * called.
(...elts: any[])
| 2009 | * called. |
| 2010 | */ |
| 2011 | push(...elts: any[]) { |
| 2012 | for (let elt of elts) { |
| 2013 | // @ts-ignore |
| 2014 | this.append(elt); |
| 2015 | } |
| 2016 | // @ts-ignore |
| 2017 | return this.length; |
| 2018 | } |
| 2019 | /** |
| 2020 | * The :js:meth:`Array.pop` method removes the last element from a |
| 2021 | * :js:class:`PyMutableSequence`. |
no test coverage detected