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

WARNING, SLOW. Recursively loop down through an items hierarchy to see if any of the ids match the supplied list, return true if any do

Parameters

tpl: string

Items tpl to check parents of

tplsToCheck: string[]

Tpl values to check if parents of item match

Returns

boolean

boolean Match found