I'm attempting to run this code:
public isDataValid(obj: any){
    let isCriteriaValid = function (){
      for(let element in obj){
        if(!this.isStringOrObjectValid(element)){
          return false
        }
      }
      return true
    }
    return (obj != undefined) ? isCriteriaValid() : false
}
A quick explanation:
Running this function checks to see if an object is valid by checking all of the elements in it.
I have an issue with the "this" context being sort of "erased".
 
    