51
rated 0 times
[
58]
[
7]
/ answers: 1 / hits: 79279
/ 11 Years ago, tue, september 3, 2013, 12:00:00
how can i remove all the key/value pairs from following map, where key starts with X.
var map = new Object();
map[XKey1] = Value1;
map[XKey2] = Value2;
map[YKey3] = Value3;
map[YKey4] = Value4;
EDIT
Is there any way through regular expression, probably using ^ .
Something like map[^XKe], where key starts with 'Xke' instead of 'X'
More From » jquery