toIntegerCoerce a value to an integer, truncating toward zeroutils-tointeger1logUtilsindex.jsCoercionTruncates toward zero via toNumber, so non-finite and unparseable input both land on null["utils","coercion","tointeger","integer","parse"]Example Semantic UI