utils/keybinding.js
function hasKeybinding (key, method) {
  if (!bindings[key]) return false;
  return method ? !!~bindings[key].methods.indexOf(method) : true;
}
function hasKeybinding (key, method) {
  if (!bindings[key]) return false;
  return method ? !!~bindings[key].methods.indexOf(method) : true;
}
function hasKeybinding ( key , method ) { if ( ! bindings [ key ] ) return false ; return method ? ! ! ~ bindings [ key ] . methods . indexOf ( method ) : true ; }
- Returns Boolean if key is bound to a method, or if any bindings exist for that character - @arg {String} key - character in question - @arg {Function} method - used when you want to know if a key has been bound to a method.
- Returns Boolean if key is bound to a method or if any bindings exist for that character -