Skip to main content
Module

x/atlas_sdk/mod.ts>Long#compare

TypeSafe MongoDB Atlas Data API SDK for Deno, Deno Deploy and Node.js
Latest
method Long.prototype.compare
import { Long } from "https://deno.land/x/atlas_sdk@v1.1.3/mod.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