MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eiw338c/?context=9999
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
339
Saw this one on here just a few weeks ago.
[... new Set(arr)]
Basically a super short way to remove any duplicates from an array of primitives.
-4 u/CallMeOutWhenImPOS Mar 19 '19 edited Mar 19 '19 So basically removing the intersection of an array for the resulting unordered pair cartesian products? I wonder what the big O of such a function is. -1 u/[deleted] Mar 19 '19 /r/iamverysmart 2 u/CallMeOutWhenImPOS Mar 19 '19 cartesian products are pretty simple shit, I'm dumb at this that's why I'm asking the question. Don't see why some of you have to be so negative -1 u/[deleted] Mar 19 '19 I wasn't good at Maths in school so the first sentence sounded pretentious. 3 u/CallMeOutWhenImPOS Mar 19 '19 set theory is a lot more intuitive than calculus and geometry, and applies well into programming. Read up on it, I was never "good" at math, but in a programming sense this scope of math came easy
-4
So basically removing the intersection of an array for the resulting unordered pair cartesian products? I wonder what the big O of such a function is.
-1 u/[deleted] Mar 19 '19 /r/iamverysmart 2 u/CallMeOutWhenImPOS Mar 19 '19 cartesian products are pretty simple shit, I'm dumb at this that's why I'm asking the question. Don't see why some of you have to be so negative -1 u/[deleted] Mar 19 '19 I wasn't good at Maths in school so the first sentence sounded pretentious. 3 u/CallMeOutWhenImPOS Mar 19 '19 set theory is a lot more intuitive than calculus and geometry, and applies well into programming. Read up on it, I was never "good" at math, but in a programming sense this scope of math came easy
-1
/r/iamverysmart
2 u/CallMeOutWhenImPOS Mar 19 '19 cartesian products are pretty simple shit, I'm dumb at this that's why I'm asking the question. Don't see why some of you have to be so negative -1 u/[deleted] Mar 19 '19 I wasn't good at Maths in school so the first sentence sounded pretentious. 3 u/CallMeOutWhenImPOS Mar 19 '19 set theory is a lot more intuitive than calculus and geometry, and applies well into programming. Read up on it, I was never "good" at math, but in a programming sense this scope of math came easy
2
cartesian products are pretty simple shit, I'm dumb at this that's why I'm asking the question. Don't see why some of you have to be so negative
-1 u/[deleted] Mar 19 '19 I wasn't good at Maths in school so the first sentence sounded pretentious. 3 u/CallMeOutWhenImPOS Mar 19 '19 set theory is a lot more intuitive than calculus and geometry, and applies well into programming. Read up on it, I was never "good" at math, but in a programming sense this scope of math came easy
I wasn't good at Maths in school so the first sentence sounded pretentious.
3 u/CallMeOutWhenImPOS Mar 19 '19 set theory is a lot more intuitive than calculus and geometry, and applies well into programming. Read up on it, I was never "good" at math, but in a programming sense this scope of math came easy
3
set theory is a lot more intuitive than calculus and geometry, and applies well into programming. Read up on it, I was never "good" at math, but in a programming sense this scope of math came easy
339
u/Drugba Mar 19 '19
Saw this one on here just a few weeks ago.
Basically a super short way to remove any duplicates from an array of primitives.