Is there a way to return multiple values in a JavaScript return statement? Would it be beneficial to encapsulate these values within a JS object, or is there another solution?
function buildSomething()
var t = [];
var x = [];
var y = [];
var h = [];
var myValues = fnGetData(t,y,x,h);
function fnGetData(t,y,x,h)
{
// do something
// return t,y,x,h
}