lib/index.js
function firstWord(parent, index) {
  var siblings = parent.children

  while (index--) {
    if (is('WordNode', siblings[index])) {
      return false
    }
  }

  return true
}
function firstWord(parent, index) {
  var siblings = parent.children

  while (index--) {
    if (is('WordNode', siblings[index])) {
      return false
    }
  }

  return true
}
Check if there’s no word before `index`.