MCPcopy Create free account
hub / github.com/Semantic-Org/Semantic-UI-CSS / addResult

Function addResult

components/search.js:596–605  ·  view source on GitHub ↗
(array, result)

Source from the content-addressed store, hash-verified

594
595 // avoid duplicates when pushing results
596 addResult = function(array, result) {
597 var
598 notResult = ($.inArray(result, results) == -1),
599 notFuzzyResult = ($.inArray(result, fuzzyResults) == -1),
600 notExactResults = ($.inArray(result, exactResults) == -1)
601 ;
602 if(notResult && notFuzzyResult && notExactResults) {
603 array.push(result);
604 }
605 }
606 ;
607 source = source || settings.source;
608 searchFields = (searchFields !== undefined)

Callers 1

search.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…