length
Module Export
text |> numberReturns the number of characters in a text value.
Examples
import { length } from 'text'
from 'hello' length// Returns: 5
from '' length// Returns: 0
from 'hello world' length// Returns: 11Notes
- Returns the number of characters (not bytes) in the text
- An empty string returns
0