dynamic hasProperty(o, name)

Source

hasProperty(o, name) => JS('bool', '# in #', name, o);