nl_tokens: check if a flag is set for any of a key s aliases .
pl_tokens: function checkAllAliases ( key , <mask> ) { var isSet = false var toCheck = [ ] . concat ( aliases [ key ] || [ ] , key ) toCheck . forEach ( function ( key ) { if ( flag [ key ] ) isSet = flag [ key ] } ) return isSet }