function isFunction(object) {
    return typeof object === 'function';
  }
Tries to match the given regular expression at the current position.
Returns the matched text if it can match, the empty string otherwise.