(.js)
laraImport("lara.core.LaraCore");
(.lara)
import lara.core.LaraCore;
checkArray(variable, source)
checkBoolean(variable, source)
checkDefined(value, varName, source)
checkInstance(value, type, source, userTypeName)
checkNumber(variable, source)
checkString(variable, source)
checkTrue(booleanExpr, message, source)
Throws an exception if the given expression evaluates to false.
checkType(value, type, source)
defaultValue(value, defaultValue)
Returns the value if defined or the provided default value. This useful for optional parameters of functions.
isArray(value)
isDebug()
isUndefined(value)
Temporary method that returns true if the given value is undefined or null,
to be used while WeaverGenerator does not support returning undefined from Java.
notImplemented(functionName)
setDebug(value)