ts-enum-to-array
v1.0.1
Published
Transform an enum to array of values
Downloads
552
Readme
ts-enum-to-array
Transform an enum to array of values.
Usage
import { enumToArray } from "ts-enum-to-array";
enum X {
A,
B,
}
const xValues = enumToArray(X); // [X.A, X.B]