Skip to main content
Module

x/mongo/deps.ts>Long#compare

MongoDB driver for Deno
Extremely Popular
Go to Latest
method Long.prototype.compare
Re-export
import { Long } from "https://deno.land/x/mongo@v0.31.0/deps.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