function firstchar (str) {
  var match = FIRST_CHAR_REGEXP.exec(str)

  return match
    ? match[1]
    : undefined
}
Get the first non-whitespace character in a string.

@param {string} str
@return {function}
@private