Skip to main content
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.
Latest
function isEmpty
import { isEmpty } from "https://deno.land/x/fun@v2.0.0/string.ts";

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

Examples

Example 1

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

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

Parameters

a: string

Returns

boolean