(self: string): booleanChecks 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)guards
Source effect/String.ts:4201 lines
export const const isNonEmpty: (
self: string
) => boolean
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)
isNonEmpty = (self: stringself: string): boolean => self: stringself.String.length: numberReturns the length of a String object.
length > 0Referenced by 2 symbols