@pengzhanbo/utils - v3.9.0
    Preparing search index...

    Interface MaskOptions

    Options for the mask function.

    mask 函数的选项。

    interface MaskOptions {
        end?: number;
        maskChar?: string;
        start?: number;
    }
    Index
    end?: number

    The index at which masking ends (exclusive). A negative value counts from the end of the string. Default is -4. 掩码结束位置(不包含),负数表示从字符串末尾计数,默认为 -4

    maskChar?: string

    The character used to mask the string. Default is ''. 用于掩码的字符,默认为 ''

    start?: number

    The index at which masking starts (inclusive). Default is 3. 掩码开始位置(包含),默认为 3