Salutare. de ce la minutul 3:45 (apx), in linia 3 ai scris ' nums', si nu Numbers? Inteleg rezultatul unde trebuie sa duca codul, dar nu inteleg de ce trebuie scris asa.
@@PD_Patrice person is the argument passed to the function that will be executed for each element of the people array, and it represents each individual element of the array during each iteration. You can just name it anything you like though.
I guess the reason its not common to use filter for removing duplicates is that it involves nesting an indexOf loop inside a filter loop, which maybe considered a bad practice for time complexity.
Hello Florin pop thx for your video but i want ask if i have array of objects and i want get the duplicate objects with filter function how i can do it
hey. Thanks for the explanation! Its being super helpful for a beginner like me :) One question, where did you get "person" from? There is no person in the adults arrays, so im trying to understand how to access person.age, if there's no person. Thank you!
Check out the other videos in the JavaScript Array Methods series: ua-cam.com/play/PLgBH1CvjOA62PBFIDq55-S6Beivje30A2.html
That is a clever way of removing duplicates using the filter method Florin. I've never seen it done that way. I writing that down haha.
Better do it with Set 😆
@@FlorinPop Yeah that's how I do it usually, but I like to know multiple ways of doing the same thing as you well know haha
Thank you sir for the last use case of filter method(removing duplicates),i never thought it that way,thanks for the eye opener.
Your welcome. Although whenever you want to remove duplicates, I’d suggest you use Set.
Thank you! Just what I needed.
amazing usecases. thanks
Salutare. de ce la minutul 3:45 (apx), in linia 3 ai scris ' nums', si nu Numbers? Inteleg rezultatul unde trebuie sa duca codul, dar nu inteleg de ce trebuie scris asa.
thanks. this helped me with my project 🙂
Great video, I only have 1 question. In 2:30 where did the "person" variable come from?
Do you know the answer to this? I'm just starting out and I'm SO confused by this concept...
@@PD_Patrice person is the argument passed to the function that will be executed for each element of the people array, and it represents each individual element of the array during each iteration. You can just name it anything you like though.
How you are outputting console.log in terminal? Is there any extension for it? Thank you for the video.
I use nodemon to run the script on saving the file.
Florin Pop Thank you much man! Best of luck for the future.
Thanks you Florin for helping me understand these concepts 🙆
Do you understand JavaScript now?
Another excellent explanation, thanks Florin
Thankyou Florin!
I guess the reason its not common to use filter for removing duplicates is that it involves nesting an indexOf loop inside a filter loop, which maybe considered a bad practice for time complexity.
Yup. Plus it’s easier with Set
Good because that last part was a little confusing.
thanks for sharing informative things
Can't believe this is free😳
Thank you sir
Only 133k subscribers !!!!!?..!!
Hoooow 💔😪
U deserve 1M ond more++ 👑
Hello Florin pop
thx for your video
but i want ask if i have array of objects and i want get the duplicate objects with filter function how i can do it
hey florin, i dont undersetand the third part of value, index, arr part and i dont know what to do
create a full javascript searies bro your video is is such a great.but create video with this method as you apply in this video.
hey. Thanks for the explanation! Its being super helpful for a beginner like me :) One question, where did you get "person" from? There is no person in the adults arrays, so im trying to understand how to access person.age, if there's no person. Thank you!
Do you understand JavaScript yet?