function find( pkgs, clbk ) { // eslint-disable-line stdlib/no-redeclare
	var total;
	var out;
	var i;

	total = pkgs.length;
	i = -1;
	out = [];

	return next();

	/**
	* Checks the next package.
	*
	* @private
	*/
	function next() {
		var fpath;
		var dir;

		i += 1;
		debug( 'Searching package %d of %d: %s', i+1, total, pkgs[ i ].pkg );

		debug( 'Checking for a README...' );
		dir = pkgs[ i ].dir;
		fpath = join( dir, 'README.md' );
		exists( fpath, onExists );

		/**
		* Callback invoked after checking for a README.
		*
		* @private
		* @param {(Error|null)} error - error object
		* @param {boolean} bool - boolean indicating if a file exists
		*/
		function onExists( error, bool ) { // eslint-disable-line no-unused-vars
			if ( error ) {
				debug( 'Encountered an error when searching for a README. Directory: %s (%d of %d). Error: %s', dir, i+1, total, error.message );
			} else {
				debug( 'Found a package README.' );
				out.push( fpath );
			}
			done();
		}
	}

	/**
	* Callback invoked upon checking all packages.
	*
	* @private
	* @returns {void}
	*/
	function done() {
		var j = i + 1;
		if ( j < total ) {
			debug( 'Searched %d of %d packages.', j, total );
			return next();
		}
		debug( 'Successfully searched all packages.' );
		return clbk( null, out );
	}
}
Searches for README files based on a list of namespace packages.

@private
@param {ObjectArray} pkgs - list of packages
@param {Callback} clbk - callback to invoke upon completion
@returns {void}