Given:
var dic = {1: 11, 2: 22}
How to test if (1, 11) exists?
In Nushorn Java script engine you can do also
if (dic.0) print('tested for null and key 0 exist')