check field is not in object javascprt code example Example: check if field exists in object javascript if ('field' in obj) { }