push Method

Adds a new classifier to the list, if an equivalent classifier is not already present.

push(classifier: Classifier): Classifier | undefined

Parameter Type Description
classifier Classifier JSON representation of the new classifier

Returns - Classifier | undefined

The copy of classifier that was added to the list, or undefined if an equivalent classifier already exists in the list.

Defined in

Last Updated: 13 June, 2024