signal-desktop/ts/util/characters.ts

6 lines
163 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export function count(str: string): number {
return Array.from(str).length;
}