lib/Master.js
/**
   * Determines if the given slave belongs to the provided group.
   * @param {String|Number|Slave} s The slave, slave id, or slave alias to determine group membership.
   * @param {String} g The group to determine if the slave belongs to.
   * @return {Boolean} True if the slave belongs to the group, false otherwise.
   */
Determines if the given slave belongs to the provided group.
@param {String|Number|Slave} s The slave, slave id, or slave alias to determine group membership.
@param {String} g The group to determine if the slave belongs to.
@return {Boolean} True if the slave belongs to the group, false otherwise.
Determines if the given slave belongs to the provided group . @param { String|Number|Slave } s The slave slave id or slave alias to determine group membership . @param { String } g The group to determine if the slave belongs to . @return { Boolean } True if the slave belongs to the group false otherwise .
slaveBelongsToGroup(s, g) {
    s = Slave.getSlave(s);
    if (!s || !g || typeof g !== 'string') return false;
    return s.group === g;
  }
slaveBelongsToGroup ( s , g ) { s = Slave . getSlave ( s ) ; if ( ! s || ! g || typeof g !== 'string' ) return false ; return s . group === g ; }
Determines if the given slave belongs to the provided group.
Determines if the given slave belongs to the provided group .