MCPcopy
hub / github.com/Tampermonkey/tampermonkey / isIn

Function isIn

src/background.js:3229–3235  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

3227
3228var getValidTabId = function(ignore, cb) {
3229 var isIn = function(id) {
3230 if (!ignore) return false;
3231 for (var i=0; i<ignore.length; i++) {
3232 if (ignore[i] == id) return true;
3233 }
3234 return false;
3235 };
3236
3237 var resp = function(tab) {
3238 var id = 0;

Callers 2

itFunction · 0.85
respFunction · 0.85

Calls

no outgoing calls

Tested by 1

itFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…