Lets say I have javascript objects like this one:
var obj = {
'addr:housenumber': '7',
'addr:street': 'Frauenplan',
'owner': 'Knaut, Kaufmann'
}
How can I check if the object has a property name that starts with addr
? I’d imagine something along the lines of the following should be possible:
if (e.data[addr*].length) {
I tried RegExp
and .match()
to no avail.