Skip to main content
Module

x/denomongo_unittest_utils/deps.ts>Bson.Long#compare

Unittest utilities for deno_mongo
Latest
method Bson.Long.prototype.compare
Re-export
import { Bson } from "https://deno.land/x/denomongo_unittest_utils@v0.5.3/deps.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