Skip to main content
Module

x/fun/string.ts>length

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 length
import { length } from "https://deno.land/x/fun@v.2.0.0-alpha.11/string.ts";

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