db-vendo-client/format/location-identifier.js
Kristjan ESPERANTO 66d9fb5194
apply linting rules
follow-up of 228c7253
2024-02-10 16:50:12 +01:00

18 lines
303 B
JavaScript

const sep = '@';
const formatLocationIdentifier = (data) => {
let str = '';
for (let key in data) {
if (!Object.prototype.hasOwnProperty.call(data, key)) {
continue;
}
str += key + '=' + data[key] + sep; // todo: escape, but how?
}
return str;
};
export {
formatLocationIdentifier,
};