var regxp = /[\\S]/; //any char, not sure if it\'s /.*/ or something else var obj = { atr1: \"bla\" } var blahs = obj[regxp]; //returns atr1
I\'m
If you have only one property, you can be pretty sure for..in will not be slow.
for..in