Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: enumify
node v8.17.0
endpoint
share
tweet
var enumify = require("enumify"); var canList = require("can-list@3.2.2"); class Colors extends enumify.Enum {}; Colors.initEnum({ RED: { label: "RED" }, GREN: { label: "GREEN" }, }); console.log(new canList(Colors.enumValues));
Created from: https://npm.runkit.com/enumify
Loading…
no comments
sign in
to comment