add Method

Add a key or keys to this KeySet.

add(value: Key | Keys, pred?: (key: Key) => boolean): KeySet

@returns itself

Parameter Type Description
value Key | Keys A key or keys to add.
pred (key: Key) => boolean An optional predicate function that indicates whether a key should be added

Returns - KeySet

itself

Defined in

Last Updated: 17 December, 2024