JS Strict Data Types - Documentation


JS Strict Data Types is JavaScript library that attempts to facilitate strict data types in JavaScript.

Below are the data types that are currently supported.

You can convert data types from one data type to another using the ConvertDataType method. The method accesses two parameters, the first is the variable that you want to convert and the second is a string value for the data type that you want to convert the variable to (Int for Integer, Float for Float, String for String and Boolean for Boolean). Below is an example of converting a variable from an Integer to a Float.

MyVar1 = new Int(MyVar1);
MyVar1 = ConvertDataType(MyVar1, "Float");