(self: string): numberReturns the JavaScript string length, measured in UTF-16 code units.
Example (Getting string length)
import { String } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(String.length("abc"), 3)getters
Source effect/String.ts:4371 lines
export const const length: (self: string) => numberReturns the JavaScript string length, measured in UTF-16 code units.
Example (Getting string length)
import { String } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(String.length("abc"), 3)
length = (self: stringself: string): number => self: stringself.String.length: numberReturns the length of a String object.
length