Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 339 Bytes

isValidAccountBank.md

File metadata and controls

17 lines (10 loc) · 339 Bytes

isValidAccountBank

Validate if the account number has only numbers and one digit at the end

Arguments

  • account: string: value to be validated

Usage

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

isValidAccountBank('1234-55'); // return false

isValidAccountBank('1234-5'); // return true