Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 308 Bytes

isValidCurrency.md

File metadata and controls

17 lines (10 loc) · 308 Bytes

isValidCurrency

Validates if the value is a valid brazilian currency.

Arguments

  • currency: string: value to be validated

Usage

import { isValidCurrency } from '@platformbuilders/validations';

isValidCurrency('10.00'); // return false

isValidCurrency('R$10,00'); // return true