L2: Triple X
Last updated
Was this helpful?
Last updated
Was this helpful?
if x exist
return 'x' index === 'xxx' index
if x doesn't exist return false
In mordern JS optional chaining is good option
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
if x exist (n)
return 'x' index === 'xxx' index (2n)
if x doesn't exist return false
O = n
O = n