MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / arrayContains

Function arrayContains

test/helpers/sinon.js:344–356  ·  view source on GitHub ↗
(array, subset)

Source from the content-addressed store, hash-verified

342 var match;
343
344 function arrayContains(array, subset) {
345 if (subset.length === 0) { return true; }
346 var i, l, j, k;
347 for (i = 0, l = array.length; i < l; ++i) {
348 if (match(array[i], subset[0])) {
349 for (j = 0, k = subset.length; j < k; ++j) {
350 if (!match(array[i + j], subset[j])) { return false; }
351 }
352 return true;
353 }
354 }
355 return false;
356 }
357
358 /**
359 * @name samsam.match

Callers 1

sinon.jsFile · 0.85

Calls 1

matchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…