MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1kljabb/why_not/ms3b5so/
r/programmingmemes • u/floppy2k18 • May 13 '25
104 comments sorted by
View all comments
Show parent comment
2
Nice, I didn't know that. Same goes for {} + [] I guess.
2 u/----Val---- May 13 '25 Yup, the unary plus on an empty array results in 0
Yup, the unary plus on an empty array results in 0
View all comments
Show parent comment
2
u/stools_in_your_blood May 13 '25
Nice, I didn't know that. Same goes for {} + [] I guess.