/** * Removes the key/value pair associated with the specified key from the map. * * @tsplus static ImmutableMap.Aspects remove * @tsplus pipeable ImmutableMap remove */ export function remove(key: K) { return (self: ImmutableMap): ImmutableMap => { const map = self.copy.internalMap as Map map.delete(key) return new ImmutableMap(map) } }