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

Check if item is stored inside of a container

Parameters

item: Item

Item to check is inside of container

desiredContainerSlotId: string

Name of slot to check item is in e.g. SecuredContainer/Backpack

items: Item[]

Inventory with child parent items to check

Returns

boolean

True when item is in container