Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce stricter integer parsing with filterInt
filterInt enforces that the value to be encoded is indeed an integer. From parseInt documentation on MDN: > If parseInt encounters a character that is not a numeral in the specified radix, it ignores it and all succeeding characters and returns the integer value parsed up to that point. See more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global _Objects/parseInt
- Loading branch information