code: function bindAll(self: Object, fnNames: Array<string>) {
    fnNames.forEach(name => {
      /* eslint-disable no-param-reassign */
      self[name] = self[name].bind(self);
      /* eslint-enable no-param-reassign */
    });
  }
docs: /* --
  *bindAll()**
  
  Binds a list of object methods to the object with `Function#bind()`.
  Especially useful for ES6-style React components.
  
  **self** *Object*: methods will be bound to this object
  **fnNames** *Array<string>*: list of method names
  --