UNPKG

abbott-methods

Version:

abbott,methods,method,functions,function

9 lines (7 loc) 263 B
import { replaceByObject } from '../replace/replaceByObject' /** * @description 去掉空格和逗号 * @param {string} string * @returns {number} */ export const numberGet = (string: string): number => +replaceByObject(string, { ',': '', ' ': '' })