add Method

Add a key or keys to this KeySet.

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

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

Returns - itself

Defined in

Last Updated: 08 January, 2020