JSFiddle - React, Tailwind, and code Playground
by bauangsta
JavaScript
var obj = { a: 2.078467321618, b :13521.4, c : 4503.9 };
var keyArr = [];
var valArr = [];
//iterate obj
$.each(obj, function(k, v) {
//add items to the keyArr from obj's keys.
keyArr.push(k);
//add items to the varArr from obj's keys.
valArr.push(v);
});
//show the result
alert(keyArr);
alert(valArr);