/** * Tests whether or not map contains a key. * * @tsplus static effect/core/stm/TMap.Aspects contains * @tsplus pipeable effect/core/stm/TMap contains */ export function contains(k: K) { return (self: TMap): STM => self.get(k).map((_) => _.isSome()) }