Skip to main content
The Deno 2 Release Candidate is here
Learn more
method BotLootCacheService.prototype.compareByValue
import { BotLootCacheService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";

Compares two item prices by their flea (or handbook if that doesnt exist) price -1 when a < b 0 when a === b 1 when a > b

Parameters

itemAPrice: number
itemBPrice: number

Returns

number