MCPcopy Index your code
hub / github.com/SortableJS/Sortable / find

Function find

src/utils.js:131–145  ·  view source on GitHub ↗
(ctx, tagName, iterator)

Source from the content-addressed store, hash-verified

129
130
131function find(ctx, tagName, iterator) {
132 if (ctx) {
133 let list = ctx.getElementsByTagName(tagName), i = 0, n = list.length;
134
135 if (iterator) {
136 for (; i < n; i++) {
137 iterator(list[i], i);
138 }
139 }
140
141 return list;
142 }
143
144 return [];
145}
146
147
148

Callers 1

Sortable.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…