lib/utils/index.js
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;
}
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;
}
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 ; }
Check record allowed in whitelist
Check record allowed in whitelist