export function values ( obj ) { const res = [ ] ; for ( const key in obj ) { if ( ! obj . hasOwnProperty ( key ) ) continue ; res . push ( obj [ key ] ) ; } return res ; } export function enumHas ( enm , value ) { return values ( enm ) . indexOf ( value ) > - 1 ; }