I am trying to implement a JS Dictionary which has a key and value, where the value calls a callback function for validation.
For example I have tried defining an ani