effect-io-ai

Package: effect
Module: Boolean

Boolean.not

Negates the given boolean: !self

Example

import * as assert from "node:assert"
import { not } from "effect/Boolean"

assert.deepStrictEqual(not(true), false)
assert.deepStrictEqual(not(false), true)

Signature

declare const not: (self: boolean) => boolean

Source

Since v2.0.0