kin
kin copied to clipboard
[Enhancement] : In-built function's validation utility
We repeat our selves too much while we're verifying if the number of parameters and number of arguments for native functions are the same as expected. We need to built a simple validation utility to help us avoid that. it has to be scalable so that in case we need to add further verifications it can be done easily :+1:
That validation utility class will be in /src/lib/validator.ts
It'll have a method which is reponsible for checking if number of parameters a native function has is equal to the number of argumets it received, otherwise it'll throw an error.