$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · hard · #164

Fill the blank

// narrow away null before using it
if (v ____ null) {
  return v.trim();
}

Answer: !== (also accepted: !==)

A strict !== null check narrows the type so the call is safe.
Play Problem Solving ▸