src/index.js
function _getWishContext(wish, wishContextTypes) {
  let wishContext = []
  wishContextTypes = wishContextTypes || ['all', 'any', 'none']

  wishContextTypes = _arrayify(wishContextTypes)
  _each(wishContextTypes, wishContextType => {
    if (wish.context[wishContextType]) {
      wishContext = wishContext.concat(wish.context[wishContextType])
    }
  })

  return wishContext
}
function _getWishContext(wish, wishContextTypes) {
  let wishContext = []
  wishContextTypes = wishContextTypes || ['all', 'any', 'none']

  wishContextTypes = _arrayify(wishContextTypes)
  _each(wishContextTypes, wishContextType => {
    if (wish.context[wishContextType]) {
      wishContext = wishContext.concat(wish.context[wishContextType])
    }
  })

  return wishContext
}
function _getWishContext ( wish , wishContextTypes ) { let wishContext = [ ] wishContextTypes = wishContextTypes || [ 'all' , 'any' , 'none' ] wishContextTypes = _arrayify ( wishContextTypes ) _each ( wishContextTypes , wishContextType => { if ( wish . context [ wishContextType ] ) { wishContext = wishContext . concat ( wish . context [ wishContextType ] ) } } ) return wishContext }
Gets the wish context based on the wishContextTypes.
@param {object} wish
@param {string|Array.<string>} wishContextTypes
@returns {Array.<string>}
@private
Gets the wish context based on the wishContextTypes .