/** * Removes all key/value pairs associated with the keys in the specified * collection from the map. * * @tsplus static ImmutableMap.Aspects removeMany * @tsplus pipeable ImmutableMap removeMany */ export function removeMany(keys: Collection) { return (self: ImmutableMap): ImmutableMap => { const map = self.copy.internalMap as Map for (const key of keys) { map.delete(key) } return new ImmutableMap(map) } }