Indicative is normally used for validation and sanitize request, but to_int sanitazion is failing for strings like '2017a1', it's return 2017, but in some times, We need a NaN, becuase It's may be a error typing.
I'll send a PR with the posible solution.
My PR'll fail because eslint is failing. But, You can view the code and feedback me.
Indicative is normally used for validation and sanitize request, but to_int sanitazion is failing for strings like '2017a1', it's return 2017, but in some times, We need a NaN, becuase It's may be a error typing.
I'll send a PR with the posible solution.
My PR'll fail because eslint is failing. But, You can view the code and feedback me.