lib/util/flag.js
function flag(values, value, flags) {
  return flags && own.call(values, value) && flags.indexOf(values[value]) !== -1
}
function flag(values, value, flags) {
  return flags && own.call(values, value) && flags.indexOf(values[value]) !== -1
}
Check whether a word has a flag.