packages/babel-plugin-transform-block-scoping/src/index.js
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 .