Skip to main content
Deno 2 is finally here 🎉️
Learn more
method BotLootCacheService.prototype.compareByValue
import { BotLootCacheService } from "https://deno.land/x/sptaki@1.2.0/services/BotLootCacheService.d.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