src/index.js
function addPathContext(pathContexts) {
  _each(pathContexts, pathContext => {
    if (pathContext.paths) {
      pathContext.paths = _arrayify(pathContext.paths)
    }

    if (pathContext.regexes) {
      pathContext.regexes = _arrayify(pathContext.regexes)
    }

    if (pathContext.contexts) {
      pathContext.contexts = _arrayify(pathContext.contexts)
    }
  })
  _addUniqueItems(_pathContexts, pathContexts)
  return _pathContexts
}
function addPathContext(pathContexts) {
  _each(pathContexts, pathContext => {
    if (pathContext.paths) {
      pathContext.paths = _arrayify(pathContext.paths)
    }

    if (pathContext.regexes) {
      pathContext.regexes = _arrayify(pathContext.regexes)
    }

    if (pathContext.contexts) {
      pathContext.contexts = _arrayify(pathContext.contexts)
    }
  })
  _addUniqueItems(_pathContexts, pathContexts)
  return _pathContexts
}
function addPathContext ( pathContexts ) { _each ( pathContexts , pathContext => { if ( pathContext . paths ) { pathContext . paths = _arrayify ( pathContext . paths ) } if ( pathContext . regexes ) { pathContext . regexes = _arrayify ( pathContext . regexes ) } if ( pathContext . contexts ) { pathContext . contexts = _arrayify ( pathContext . contexts ) } } ) _addUniqueItems ( _pathContexts , pathContexts ) return _pathContexts }
Add a path context to genie's pathContexts
@param {Array.<PathContext>} pathContexts The path context to add
@returns {Array.<PathContext>} The new path contexts
@public
Add a path context to genie s pathContexts