Ale.js

Data type decision

Start

We can use a dataType property to make it easy for Ale.js to automatically determine if the data type is accurate:

Inside the dataType you need to set a data or staticData to specify which type of data to make the decision in:

For example, we only accept parameters of numeric type: [If it is a constructor type, then ale will use the instanceOf keyword to determine]

Or: [If it is a string type, then ale will use the typeof keyword to determine]

Found some errors? Edit on Github!