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

Checks to see if the preset is of the given base class.

Parameters

id: string

The id of the preset

baseClass: BaseClasses

The BaseClasses enum to check against

Returns

boolean

True if the preset is of the given base class, false otherwise