There is no issue with the sample code. In the editor code, checkProp is a variable which contains a string passed to the the checkObj function. In the example code, the values being checked are literal strings.
2 Likes