Let's say you dont know the numbers before the letter here.
var obj = {'1234 x': 1, '32145 y': 2}
How would you retrieve the value 1 from this object.
The normal way of doing this would be:
obj['1234 x'] // 1
But what if you only knew part of the key: 'x'
(the part that comes after the first space)
var key = '1234 x',
known_key = key.split(' ')[0] // 'x'
How would you be able to retrieve this value?
obj['% ' + known_key] // 1
// % represents all possible strings