[jQuery] calling function with array arguments

[jQuery] calling function with array arguments


Hello.
How can I pass arguments to a function as elements of an array.
For instance:
var somemap = { one: 1, two: 2, three: 3};
var arguments = { one, two }
--we iterate through arguments array and see which should be passed to
a function:
call_function(somemap['one'], somemap['two']);
or another case:
var arguments = { two }
call_function(somemap['two']);
Many thanks for help!