OlesiaBOM,
<script>
function getValues(obj) {
let values = [];
for (let property in obj)
if (obj.hasOwnProperty(property))
values.push(obj[property]);
return values;
}
let ar = getValues({
keyOne: 1,
keyTwo: 2,
keyThree: 3
})
document.write(JSON.stringify(ar, "", 2))
</script>