code: function isInLoop(node) {
      for (let currentNode = node; currentNode && !isFunction(currentNode); currentNode = currentNode.parent) {
          if (isLoop(currentNode)) {
              return true;
          }
      }
  
      return false;
  }
docs: Checks whether the given node is in a loop or not.
  
  @param {ASTNode} node - The node to check.
  @returns {boolean} `true` if the node is in a loop.