re: Do you leave jokes in your code? If so, please share! VIEW POST

FULL DISCUSSION
 
//this should work, but...
//the night is dark and full of errors 
  onCheckBoxChange = (val: string ) => (_e: any) => {

    if (typeof this.props.updatePermission === 'function' && this.props.officerId && this.props.officerId >= 0) {

      this.props.updatePermission(this.props.officerId, {
        ...{ isValidAsPast : this.props.isValidAsPast, isValidAsUpcoming: this.props.isValidAsUpcoming},
        [val] : !this.props[val] } as PermissionPartial 
        ); 
    }
  }
 

"The night is dark and full of errors."

How is this not a meme?

 

Hahahaha, this great! Might steal that from you ;)

code of conduct - report abuse