Skip to main content
Module

x/fun/mod.ts>string.length

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

Returns the length of an input string.

Examples

Example 1

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

const result1 = length("Hello"); // 5
const result2 = length(""); // 0

Parameters

a: string

Returns

number