PHP 8.2.30
Preview: guard.js Size: 1.10 KB
//opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/node_modules/@tufjs/models/dist/utils/guard.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDefined = isDefined;
exports.isObject = isObject;
exports.isStringArray = isStringArray;
exports.isObjectArray = isObjectArray;
exports.isStringRecord = isStringRecord;
exports.isObjectRecord = isObjectRecord;
function isDefined(val) {
    return val !== undefined;
}
function isObject(value) {
    return typeof value === 'object' && value !== null;
}
function isStringArray(value) {
    return Array.isArray(value) && value.every((v) => typeof v === 'string');
}
function isObjectArray(value) {
    return Array.isArray(value) && value.every(isObject);
}
function isStringRecord(value) {
    return (typeof value === 'object' &&
        value !== null &&
        Object.keys(value).every((k) => typeof k === 'string') &&
        Object.values(value).every((v) => typeof v === 'string'));
}
function isObjectRecord(value) {
    return (typeof value === 'object' &&
        value !== null &&
        Object.keys(value).every((k) => typeof k === 'string') &&
        Object.values(value).every((v) => typeof v === 'object' && v !== null));
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
1.10 KB lrw-r--r-- 2026-03-17 12:21:21
Edit Download
1.54 KB lrw-r--r-- 2026-03-17 12:21:21
Edit Download
4.75 KB lrw-r--r-- 2026-03-17 12:21:21
Edit Download
857 B lrw-r--r-- 2026-03-17 12:21:21
Edit Download
77 B lrw-r--r-- 2026-03-17 12:21:21
Edit Download
667 B lrw-r--r-- 2026-03-17 12:21:21
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).