tjmehta / 101

A modern JS utility library
MIT License
1.55k stars 75 forks source link

support bindAll(obj, filterFn) #136

Open tjmehta opened 8 years ago

tjmehta commented 8 years ago
var isHandler = function (key) {
  return /^handler/.test(key)
}
bindAll(obj, isHandler)
tjmehta commented 8 years ago

and also regexp:

bindAll(obj, /^handler/)

requires 101/matches, #5