effect-io-ai

Package: effect
Module: String

String.isEmpty

Test whether a string is empty.

Example

import * as assert from "node:assert"
import { String } from "effect"

assert.deepStrictEqual(String.isEmpty(''), true)
assert.deepStrictEqual(String.isEmpty('a'), false)

Signature

declare const isEmpty: (self: string) => self is ""

Source

Since v2.0.0