lib/cyclic.js
function getPath(parent, unresolved) {
	let parentVisited = false;

	return Object.keys(unresolved).filter((module) => {
		if (module === parent) {
			parentVisited = true;
		}
		return parentVisited && unresolved[module];
	});
}
function getPath(parent, unresolved) {
	let parentVisited = false;

	return Object.keys(unresolved).filter((module) => {
		if (module === parent) {
			parentVisited = true;
		}
		return parentVisited && unresolved[module];
	});
}
function getPath ( parent , unresolved ) { let parentVisited = false ; return Object . keys ( unresolved ) . filter ( ( module ) => { if ( module === parent ) { parentVisited = true ; } return parentVisited && unresolved [ module ] ; } ) ; }
Get path to the circular dependency.
@param  {String} parent
@param  {Object} unresolved
@return {Array}
Get path to the circular dependency .