MCPcopy
hub / github.com/orestbida/cookieconsent / elContains

Function elContains

src/utils/general.js:27–27  ·  view source on GitHub ↗
(el, value)

Source from the content-addressed store, hash-verified

25 * @param {any[]|string} el
26 */
27export const elContains = (el, value) => indexOf(el, value) !== -1;
28
29export const isArray = el => Array.isArray(el);
30

Callers 15

manageExistingScriptsFunction · 0.90
loadScriptsHelperFunction · 0.90
categoryWasJustDisabledFunction · 0.90
serviceWasJustDisabledFunction · 0.90
setLayoutFunction · 0.90
handleRtlLanguageFunction · 0.90
autoclearCookiesHelperFunction · 0.90
saveCookiePreferencesFunction · 0.90
setCookieFunction · 0.90
acceptedCategoryFunction · 0.90
acceptServiceFunction · 0.90
acceptedServiceFunction · 0.90

Calls 1

indexOfFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…