Skip to main content
Module

x/core_fn/common/mod.ts>length

A collection of built-in object method and property as currying function
Latest
variable length
import { length } from "https://deno.land/x/core_fn@v1.0.0-beta.16/common/mod.ts";

Returns length property.

Examples

Example 1

length('hello') // 5
length(['hello', 'world', 1]) // 3
length({length: 5, text: 'hello'}) // 5

type

<T extends { length: number; }>(val: T) => T["length"]