Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/mod.ts>Str.IsNonEmptyString

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Str.IsNonEmptyString
import { type Str } from "https://deno.land/x/rimbu@1.0.2/typical/mod.ts";
const { IsNonEmptyString } = Str;

Returns false if the given string is empty, true otherwise.

Examples

Example 1

IsNonEmptyString<''> => false
IsNonEmptyString<'abc'> => true

Type Parameters

S extends string
definition: "" extends S ? false : true