I was looking for a good solution to use Enumeration in ES6. I've found the following JS library below. But I'm getting some error related to the ES6 syntax for this code.
Source Code: https://gist.github.com/xmlking/e86e4f15ec32b12c4689
"SyntaxError: Unexpected token (2:8)"
export class EnumSymbol {
sym **=** Symbol.for(name);
value: number;
description: string;
Does anybody have a clue about is code?