Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/string.ts>isEmpty

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function isEmpty
import { isEmpty } from "https://deno.land/x/fun@v.2.0.0-alpha.11/string.ts";

A Predicate for string returning true if the string is empty.

Examples

Example 1

import { isEmpty } from "./string.ts";

const result1 = isEmpty("Hello"); // false
const result2 = isEmpty(""); // true

Parameters

a: string

Returns

boolean