mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-09 19:44:56 +02:00
20 lines
326 B
JavaScript
20 lines
326 B
JavaScript
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
exports["default"] = hasEntry;
|
|
|
|
function hasEntry(target, targetKey, searchFor) {
|
|
if (!target) {
|
|
return false;
|
|
}
|
|
|
|
for (var i = 0; i < target.length; i += 1) {
|
|
var file = target[i][targetKey];
|
|
|
|
if (file === searchFor) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
} |