I
am using jQuery and I am handling a variable this
way:
var array =
{};
array[an_object] = something
array[another_object] =
something_else
array[...] =
...
When I try to run
the rel="noreferrer">splice method on the
array I get a TypeError: array.splice is not a. My intent is to remove the
function
an_object "key" and all its content from the
array
variable.
How can I make
that?
/>
Note: When I run the
console.log(array[an_object]) (the same is valid for
another_object and all other objects) I
get:
[Object { label="str1",
value=1 }, Object { label="str2", value=2 }, { label="strN", value=N
}]
No comments:
Post a Comment