I want pass variable instead of number. I want to limit input based on my variable value.
if (isNaN(value) || value.match(/^\d+\.?\d{0,3}$/) === null
this is my expresssion, i want to pass variable "decimal". But i am not able to pass it.
const decimal=column.validations.decimalPlaces
I am trying to write like this if (isNaN(value) || value.match(/^\d+\.?\d{0,decimal}$/) === null
but its not working . how can i pass this decimal variable like this