Skip to main content
Module

x/web_bson/src/long.ts>Long#compare

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
method Long.prototype.compare
import { Long } from "https://deno.land/x/web_bson@v0.2.4/src/long.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