nicecode-v2/packages/utils/es/string/index.d.ts
2023-12-21 14:38:13 +08:00

8 lines
276 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export declare const getStrLength: (str: string) => number;
/**
* js截取字符串中英文都能用
* @param str需要截取的字符串
* @param len: 需要截取的长度
*/
export declare const cutStr: (str: string, len: number) => string | String | undefined;