"use strict"
const BinaryArray = require("binaryarray")

const JOB = Object.freeze({
    NONE : 0,
    FIGHTER : 1,
    MAGE : 2,
    PRIEST : 3,
    MONK : 4,
    KNIGHT : 5,
    SUMMONER : 6,
});

const JOB_MAX = Math.max.apply(Math, Object.keys(JOB).map(k => JOB[k] )) + 1;

const JOB_GROUP = Object.freeze({
    TANK : BinaryArray.deserialize({
        FIGHTER : 1,
        MONK : 1,
        KNIGHT : 1,
    }, JOB, JOB_MAX),
    CASTER : BinaryArray.deserialize({
        MAGE : 1,
        PRIEST : 1,
        SUMMONER : 1,
    }, JOB, JOB_MAX),
    HEALER : BinaryArray.deserialize({
        PRIEST : 1,
    }, JOB, JOB_MAX),
    EXJOB : BinaryArray.deserialize({
        SUMMONER : 1,
        KNIGHT : 1,
    }, JOB, JOB_MAX),
})

let job_id = JOB.FIGHTER;
if( JOB_GROUP.TANK.check([job_id],[]) ){
    console.log("tank job")
}else{
    console.log("not tank job")
}

@@ -271,20 +271,18 @@
 ) + 1;%0A%0A
-cons
+le
 t JOB_GR
@@ -287,30 +287,16 @@
 GROUP = 
-Object.freeze(
 %7B%0A    TA
@@ -712,17 +712,16 @@
 _MAX),%0A%7D
-)
 %0A%0Alet jo

Update ex4.js