@augment-vir/common
Version:
A collection of augments, helpers types, functions, and classes for any JavaScript environment.
17 lines (16 loc) • 415 B
TypeScript
/**
* Get a string's length in bytes.
*
* @category String
* @category Package : @augment-vir/common
* @example
*
* ```ts
* import {getStringByteLength} from '@augment-vir/common';
*
* const results = getStringByteLength('hello 🌍'); // 10
* ```
*
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
*/
export declare function getByteLength(value: string): number;