remove

fun remove(label: Label): Boolean(source)

Removes a label from the collection. Once removed, a label is no longer usable.

const l = labels.add(...);
labels.remove(l); // Returns true

Return

true if the label was removed; false if the label was not found in the collection.

Parameters

label

The label to remove.

See also