Skip to main content
Latest
method GetAssetClassInfo.prototype.fixArray
import { GetAssetClassInfo } from "https://deno.land/x/steam_trader@v0.4.0/src/steam_api/requests/ISteamEconomy.ts";

fixes the malformed array. simply object with index numbers to array conversion.

Parameters

obj: Record<string, any>
  • the object containing the prop (array) that needs to be fixed
key: string
  • the key of prop to access on obj