@synotech/utils
Version:
a collection of utilities for internal use
13 lines (12 loc) • 450 B
TypeScript
/**
* This method validates email address
* @module currencyParse
* @param {String} number the number or string instance to parse as a floating currency string
* @return {string} {String} a boolean value indicating if the email is valid or not
* @example
*
* currencyParse('123.43') // return '123.43'
* currencyParse('12xs3.3') // return '123.30'
*
*/
export declare function currencyParse(number: string | number): string;