src/util/enum.js
/**
     * This method takes an array of enums and turns them into a mapped object, using the enum
     * `name` as object property names.
     * 
     * @param {module:util~Enum[]} enums the enum list to turn into a value object
     * @returns {object} an object with enum `name` properties with associated enum values 
     */
This method takes an array of enums and turns them into a mapped object, using the enum
`name` as object property names.

@param {module:util~Enum[]} enums the enum list to turn into a value object
@returns {object} an object with enum `name` properties with associated enum values
This method takes an array of enums and turns them into a mapped object using the enum ` name ` as object property names . @param { module : util~Enum [] } enums the enum list to turn into a value object @returns { object } an object with enum ` name ` properties with associated enum values
static enumsValue(enums) {
        return Object.freeze(enums.reduce((obj, e) => {
            obj[e.name] = e;
            return obj;
        }, {}));
    }
static enumsValue ( enums ) { return Object . freeze ( enums . reduce ( ( obj , e ) => { obj [ e . name ] = e ; return obj ; } , { } ) ) ; }
This method takes an array of enums and turns them into a mapped object, using the enum
 `name` as object property names.
This method takes an array of enums and turns them into a mapped object using the enum ` name ` as object property names .