Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/enum/lib/enumItem.js>default

Enum is a javascript module that introduces the Enum Type. It works for node.js, in the browser and for deno.
Latest
class default
import { default } from "https://deno.land/x/enum@v3.0.4/lib/enumItem.js";

Represents an Item of an Enum.

Constructors

new
default(
key,
value,
options?,
)

Methods

has(value)

Checks if the flagged EnumItem has the passing object.

is(key)

Checks if the EnumItem is the same as the passing object.

Returns JSON object representation of this EnumItem.

Returns String representation of this EnumItem.

Returns the value to compare with.