MCPcopy
hub / github.com/lebab/lebab / isAnyForStatement

Function isAnyForStatement

src/transform/let.js:81–85  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

79
80// True when dealing with any kind of for-loop
81function isAnyForStatement(node) {
82 return node.type === 'ForStatement' ||
83 node.type === 'ForInStatement' ||
84 node.type === 'ForOfStatement';
85}
86
87// True when dealing with any kind of while-loop
88function isAnyWhileStatement(node) {

Callers 3

enterFunction · 0.85
isBlockScopedStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…