Skip to main content
Module

x/web_bson/mod.d.ts>Long#compare

web_bson is a fork from mongodb/js-bson
Very Popular
Latest
method Long.prototype.compare
import { Long } from "https://deno.land/x/web_bson@v0.3.0/mod.d.ts";

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