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

This method will compare two items (with all its children) and see if the are equivalent. This method will NOT compare IDs on the items

Parameters

item1: Item[]

first item with all its children to compare

item2: Item[]

second item with all its children to compare

optional
compareUpdProperties: Set<string>

Upd properties to compare between the items

Returns

boolean

true if they are the same, false if they arent