server/devdocs/index.js
function listDocs( filePaths ) {
	return filePaths.map( path => {
		const doc = find( documents, entry => entry.path === path );

		if ( doc ) {
			return {
				path: path,
				title: doc.title,
				snippet: defaultSnippet( doc ),
			};
		}

		return {
			path: path,
			title: 'Not found: ' + path,
			snippet: '',
		};
	} );
}
function listDocs( filePaths ) {
	return filePaths.map( path => {
		const doc = find( documents, entry => entry.path === path );

		if ( doc ) {
			return {
				path: path,
				title: doc.title,
				snippet: defaultSnippet( doc ),
			};
		}

		return {
			path: path,
			title: 'Not found: ' + path,
			snippet: '',
		};
	} );
}
Return an array of results based on the provided filenames
@param {array} filePaths An array of file paths
@returns {array} The results from the docs