GitHub repository: kossidts/intval
Primary language: JavaScript
Created: 2022-04-03T09:04:04Z
Description: If it's supposed to be an integer, just cast it with intval. This module returns the right integer value of a given variable. Unlike parseInt it will never return NaN and you can set a default value to be returned in case the variable is undefined! Hence you can write even cleaner code.