79293875

Date: 2024-12-19 10:19:36
Score: 1
Natty:
Report link

Counterintuitively but this will result into "B".

const test: any[] = []

if(!test){
    console.log("A")
}else{
    console.log("B")
}

I figure you want to loose negation (Since you probably only want to append data if there is already some).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: FrederickVB