/** * 反转一个字符串 * @param str */ export const reverseString = (str: string) => [...str].reverse().join("");