signal-desktop/ts/util/characters.ts

7 lines
163 B
TypeScript
Raw Normal View History

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