Skip to content

createEnum

createEnum(set, offset): Record<string, number>

Creates an enum from a set or an array.

Parameters

set: SetOrArray<any>

The set or array from which the enum is to be created.

offset: number= 0

The starting value of the enum.

Returns

Record<string, number>

The created enum.

Source

ecmascript/src/utils.ts:181


Generated using typedoc-plugin-markdown and TypeDoc