1.0.0 • Published 5 years ago
@patrickurlberger/data_checker v1.0.0
The Datachecker is analysing a cartain javacript object. The Data gets compared with a individual template and checks if all the keys that are included in the template exist in the passed object too. It also checks if the passed data is of the correct datatype
Possible types are:
- string
- integer
- float
- boolean
- array
- object
if a number or a bool is passed as a string the Checker converts it in the datatype it should actually be.
For german users it is interesting that float number with comma are also supported (for example "5,34" becomes 5.34)
A example of the Datachecker is included in this folder
1.0.0
5 years ago