Skip to main content

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

ParamTypeDescription
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.

ParamTypeDescription
value*Value for which to validate its type
[lowerLimit]numberOptional lower limit (inclusive)
[upperLimit]numberOptional upper limit (inclusive)