push Method

Pushes a value onto the queue according to the sorting criterion.

push(value: T): T

Parameter Type Description
value T The value to insert

Returns - The inserted value, cloned according to the CloneFunction supplied to this queue's constructor.

Defined in

Last Updated: 08 January, 2020