0

I see someone wrote Return || item in Javascript, what does this mean in a hacky form of code?

https://youtu.be/RpQTPWvD6HA?t=38m47s

Proyb
  • 3
  • 1

1 Answers1

3

return || item is SyntaxError. Video is saying !! (logical not not), which converts value to boolean.

hibiya
  • 116
  • 1
  • 7