function isInLoop(path) {
  const loopOrFunctionParent = path.find(
    path => path.isLoop() || path.isFunction(),
  );

  return loopOrFunctionParent && loopOrFunctionParent.isLoop();
}
function isInLoop(path) {
  const loopOrFunctionParent = path.find(
    path => path.isLoop() || path.isFunction(),
  );

  return loopOrFunctionParent && loopOrFunctionParent.isLoop();
}
function isInLoop ( path ) { const loopOrFunctionParent = path . find ( path => path . isLoop ( ) || path . isFunction ( ) , ) ; return loopOrFunctionParent && loopOrFunctionParent . isLoop ( ) ; }
If there is a loop ancestor closer than the closest function, we
consider ourselves to be in a loop.
If there is a loop ancestor closer than the closest function we consider ourselves to be in a loop .
Check if path is a loop or function