node_modules/@adonisjs/fold/src/Ioc/index.js
/**
   * Returns the namespace of an autoloaded directory when
   * subset of the namespace to be resolved matches. This function
   * matches the start of the string.
   *
   * ```
   * // Registered namespace: App
   * // Namespace to be resolved: App/Controllers/UsersController
   * 'App/Controllers/UsersController'.startsWith('App')
   * ```
   *
   * @method _getAutoloadedNamespace
   * @private
   *
   * @param  {String} namespace
   * @return {String}
   */
Returns the namespace of an autoloaded directory when
subset of the namespace to be resolved matches. This function
matches the start of the string.





@param  {String} namespace
@return {String}
Returns the namespace of an autoloaded directory when subset of the namespace to be resolved matches . This function matches the start of the string . @param { String } namespace @return { String }
_getAutoloadedNamespace (namespace) {
    const autoloadedKeys = _.keys(this._autoloads)
    return _.find(autoloadedKeys, (registeredNamespace) => {
      return namespace.startsWith(`${registeredNamespace}/`)
    })
  }
_getAutoloadedNamespace ( namespace ) { const autoloadedKeys = _ . keys ( this . _autoloads ) return _ . find ( autoloadedKeys , ( registeredNamespace ) => { return namespace . startsWith ( ` ${ registeredNamespace } ` ) } ) }
Returns the namespace of an autoloaded directory when
 subset of the namespace to be resolved matches.
Returns the namespace of an autoloaded directory when subset of the namespace to be resolved matches .