effect-io-ai

Package: effect
Module: String

String.isNonEmpty

Checks whether a string is non-empty.

Example (Checking for non-empty strings)

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

assert.deepStrictEqual(String.isNonEmpty(""), false)
assert.deepStrictEqual(String.isNonEmpty("a"), true)

Signature

declare const isNonEmpty: (self: string) => boolean

Source

Since v2.0.0