I am using an array as defined below

`cat_id = Object { 2="text", 3="TKL1", -1="Select an Attribute"}`.

when i am trying to retrieve the length of `"cat_id"` as
`var l = cat_id.length;`
its showing the length as `"undefined"`.
But, I am unable to get the length of `"cat_id"`. I am unable to use `replace()`, `indexOf()` and `split()` functions. 

for example:

```
var index = cat_attr.indexOf(",")

```

Its showing error as below:

> 
> TypeError: cat\_attr.indexOf is not a function
> 
> 
>