Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function metadataToDbus(metadataPlain) {
let metadataVariant = {};
for (let k of Object.keys(metadataPlain)) {
let value = metadataPlain[k];
let signature = guessMetadataSignature(k, value);
if (signature) {
metadataVariant[k] = new Variant(signature, value);
}
}
return metadataVariant;
}