Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Register a listener to changes on every array and validate the input, if input is not valid it should not be added to the array.
this way users do not have to validate each time they want to add something to the array, just add a listener and some patterns or functions(from validatees) and never touch it again.
Input
What parameters will be passed in or required?
And what is the prefered type of input?
patterns or callback functions, can be from validatees, can be user-made.
Output
What will be the expected output?
And what type does it have?
None, this is a "worker" like instance.
idea to throw error when validation fails.
idea to return full array when validation is OK.
Additional context
Add any other context or code-examples about the feature request here.
register the instance on startup, never touch it again.
validatees.registerListener([{array1, isTruthy},{array2, isString}, {object1, {password: isValidPassword, email: isValidEmail}]);
// for example, many ways to do this.
validatees.registerArrayListener(isTruthy);
// truthy values may get added in this example.
naming can be improved.