Skip to main content
The Deno 2 Release Candidate is here
Learn more
method ItemHelper.prototype.generateItemsMap
Re-export
import { ItemHelper } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

Populate a Map object of items for quick lookup using their ID.

Parameters

items: Item[]

An array of Items that should be added to a Map.

Returns

Map<string, Item>

A Map where the keys are the item IDs and the values are the corresponding Item objects.