Skip to content

isTagged

Compare the given tag to the result of `Object.prototype.toString`. ⚠️ You probably won't use this except when implementing another type guard.

Usage

isTagged("foo", "[object String]"); // true

Installation

Terminal window
npx atmx add helper is-tagged