Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 299 Bytes

isValidPositiveValue.md

File metadata and controls

17 lines (10 loc) · 299 Bytes

isValidPositiveValue

Validates if the value is positive

Arguments

  • value: string: value to be validated

Usage

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

isValidPositiveValue('-50'); // return false

isValidPositiveValue('50'); // return true