Skip to main content
Module

x/fun/mod.ts>string.isEmpty

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function string.isEmpty
import { string } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { isEmpty } = string;

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