src/index.js
function _getWishIdsInEnteredMagicWords(word) {
  const startingCharWishesObj = _climbDownChain(
    _enteredMagicWords,
    word.split(''),
  )
  if (startingCharWishesObj) {
    return _getPropFromPosterity(startingCharWishesObj, 'wishes', true)
  } else {
    return []
  }
}
function _getWishIdsInEnteredMagicWords(word) {
  const startingCharWishesObj = _climbDownChain(
    _enteredMagicWords,
    word.split(''),
  )
  if (startingCharWishesObj) {
    return _getPropFromPosterity(startingCharWishesObj, 'wishes', true)
  } else {
    return []
  }
}
function _getWishIdsInEnteredMagicWords ( word ) { const startingCharWishesObj = _climbDownChain ( _enteredMagicWords , word . split ( '' ) , ) if ( startingCharWishesObj ) { return _getPropFromPosterity ( startingCharWishesObj , 'wishes' , true ) } else { return [ ] } }
Climbs down the chain with the _enteredMagicWords object to find
where the word ends and then gets the 'wish' property from
the posterity at that point in the _enteredMagicWords object.
@param {string} word
@returns {Array.<wish>}
@private
Climbs down the chain with the _enteredMagicWords object to find where the word ends and then gets the wish property from the posterity at that point in the _enteredMagicWords object .