Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 308 Bytes

isValidOnlyNumbers.md

File metadata and controls

17 lines (10 loc) · 308 Bytes

isValidOnlyNumbers

Validates if the string has only numbers

Arguments

  • value: string: value to be validated

Usage

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

isValidOnlyNumbers('123123'); // return true

isValidOnlyNumbers('Eduardo123'); // return false