Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/model/dependencies/mongo.ts>Bson.Long#compare

model based mongo for deno
Latest
method Bson.Long.prototype.compare
Re-export
import { Bson } from "https://deno.land/x/model@v1.2/dependencies/mongo.ts";
const { Long } = Bson;

Compares this Long's value with the specified's.

Parameters

other:
| string
| number
| Long

Returns

0 | 1 | -1

0 if they are the same, 1 if the this is greater and -1 if the given one is greater