|
|
@ -54,13 +54,8 @@ jx.utils.vector=function(key,rec){
|
|
|
|
* Extract keys from an associative array
|
|
|
|
* Extract keys from an associative array
|
|
|
|
* @param rec associative array
|
|
|
|
* @param rec associative array
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
jx.utils.keys=function(rec){
|
|
|
|
jx.utils.keys=function(rec){
|
|
|
|
var keys = [] ;
|
|
|
|
return Object.keys(rec) ;
|
|
|
|
for(var id in rec){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
keys.push(id) ;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return keys ;
|
|
|
|
|
|
|
|
}//-- end jx.utils.keys
|
|
|
|
}//-- end jx.utils.keys
|
|
|
|
jx.utils.values = function(rec){
|
|
|
|
jx.utils.values = function(rec){
|
|
|
|
var r = []
|
|
|
|
var r = []
|
|
|
|