Compare the given tag to the result of `Object.prototype.toString`. ⚠️ You probably won't use this except when implementing another type guard.
isTagged("foo", "[object String]"); // true
npx atmx add helper is-tagged
Copy and paste the following method into @/utils/helpers/undefined.ts:
@/utils/helpers/undefined.ts
/*** Compare the given tag to the result of `Object.prototype.toString`.** ⚠️ You probably won't use this except when implementing another type guard.** @internal* @example* isTagged('foo', '[object String]') // true*/export function isTagged(value: unknown, tag: string): boolean {return Object.prototype.toString.call(value) === tag;}