Skip to content

Home > sculp-js > uniqueSymbol

uniqueSymbol() function

去除字符串中重复字符

Signature:

typescript
export declare function uniqueSymbol(str: string): string;

Parameters

Parameter

Type

Description

str

string

Returns:

string

string

Example

uniqueSymbol('1a1bac'); // => '1abc'

Released under the MIT License.