ValidationUtils
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) |