Is there any sort of \"not in\" operator in JavaScript to check if a property does not exist in an object? I couldn’t find anything about this around Google or Stack Overflo
Two quick possibilities:
if(!('foo' in myObj)) { ... }
or
if(myObj['foo'] === undefined) { ... }