securityos/node_modules/next/dist/lib/metadata/generate/utils.js

38 lines
834 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
resolveAsArrayOrUndefined: null,
resolveArray: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
resolveAsArrayOrUndefined: function() {
return resolveAsArrayOrUndefined;
},
resolveArray: function() {
return resolveArray;
}
});
function resolveArray(value) {
if (Array.isArray(value)) {
return value;
}
return [
value
];
}
function resolveAsArrayOrUndefined(value) {
if (typeof value === "undefined" || value === null) {
return undefined;
}
return resolveArray(value);
}
//# sourceMappingURL=utils.js.map