code: function wlCheck(wl, record, value) {
    if (!value) value = 'allow';
  
    let wlItem = _.get(wl, record);
  
    if (_.isArray(wlItem)) return wlItem.indexOf(value) !== -1;
  
    return wlItem === value;
  }
docs: Check record allowed in whitelist