Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/toInteger.js";

Converts value to an integer.

Note: This method is loosely based on ToInteger.

Examples

_.toInteger(3.2); // => 3

_.toInteger(Number.MIN_VALUE); // => 0

_.toInteger(Infinity); // => 1.7976931348623157e+308

_.toInteger('3.2'); // => 3

Parameters

value

The value to convert.