Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.69 KB

File metadata and controls

47 lines (34 loc) · 1.69 KB

Import :

const ValidationUtils = brackets.getModule("utils/ValidationUtils")

isInteger(value) ⇒ boolean

Used to validate whether type of unknown value is an integer.

Kind: global function
Returns: boolean - true if value is a finite integer

Param Type Description
value * Value for which to validate its type

isIntegerInRange(value, [lowerLimit], [upperLimit]) ⇒ boolean

Used to validate whether type of unknown value is an integer, and, if so, is it within the option lower and upper limits.

Kind: global function
Returns: boolean - true if value is an interger, and optionally in specified range.

Param Type Description
value * Value for which to validate its type
[lowerLimit] number Optional lower limit (inclusive)
[upperLimit] number Optional upper limit (inclusive)

isWithinRange(value, [lowerLimit], [upperLimit]) ⇒ boolean

Used to validate whether type of unknown value is a number (including decimals), and, if so, is it within the optional lower and upper limits.

Kind: global function
Returns: boolean - true if value is a finite number, and optionally in specified range.

Param Type Description
value * Value for which to validate its type
[lowerLimit] number Optional lower limit (inclusive)
[upperLimit] number Optional upper limit (inclusive)