Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongo/mod.ts>Bson.Long#toInt

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Bson.Long.prototype.toInt
Re-export
import { Bson } from "https://deno.land/x/mongo@v0.31.1/mod.ts";
const { Long } = Bson;

Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.

Returns

number