• Monday , 13 July 2020

Search from array of objects in javascript

Code Canyon



Search from array of objects in javascript

Link to my programming Video Library:
https://courses.LearnCodeOnline.in

Desktop: https://amzn.to/2GZ0C46
Laptop that I use: https://amzn.to/2Goui9Q
Wallpaper: https://imgur.com/a/FYHfk

Facebook: https://www.facebook.com/HiteshChoudharyPage
homepage: http://www.hiteshChoudhary.com
Download LearnCodeOnline.in app from Google play store and Apple App store

Disclaimer:
It doesn’t feel good to have a disclaimer in every video but this is how the world is right now.
All videos are for educational purpose and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

All Amazon links are affiliate links (If any).

Original source

3d Ocean

Related Posts

29 Comments

  1. Hardik Motwani
    May 17, 2019 at 17:57

    const index = newTodos.findIndex(function (todo, index) {

    console.log(todo);

    return todo.title === 'Go to Gym';

    })

    return todo.title === 'Go to Gym'
    I understood that it compares title and if title matches it returns true, but here index is returned how?
    It should return true, findIndex finds the index and if the condition matches, it will return, am i correct?

  2. Denzil Gupta
    May 17, 2019 at 17:57

    Rather thank typing the entire code in 1 line, you should actually try and break down the way you write your code as well. Writing your entire code in 1 line makes it a bit tough for people. Anyway, thanks! 😉

  3. Sanuda Jayathilaka
    May 17, 2019 at 17:57

    go through all the documentaion for the findIndex() all of your confusions will be solved trust me!!! video is amazing thank u soo much

  4. Pooja Anandan
    May 17, 2019 at 17:57

    Hey. Can you explain me the necessity or significance of using === in return statement of findIndex method. Here, we are comparing the object title with a string right? so how is it same as comparing or checking if they belong to the same memory space?
    p.s. i have seen your ==v/s=== video but i don't understand how === is returning true value when an object title is compared with a string.

  5. Muhammad Hanif
    May 17, 2019 at 17:57

    SO
    findIndex() must be provided a function called predicate. First google that then you will understand.

  6. Christopher King
    May 17, 2019 at 17:57

    Very helpful. Thank you!

  7. shubham kadam
    May 17, 2019 at 17:57

    Drama queen🤣🤣🤣

  8. Travez Ripley
    May 17, 2019 at 17:57

    Thank you @Hitesh! This was the solution I was looking for!

  9. Nusrath Fatima
    May 17, 2019 at 17:57

    Please make short videos..its difficult to understand this concept but I'm learning so many things from you. I appreciate your effort. Thank You @Hitesh Choudhary❤️❤️

  10. Furqan Khan
    May 17, 2019 at 17:57

    Amazing style of teaching you have, really impressed!

  11. Thankyou3403
    May 17, 2019 at 17:57

    you're cuter than the bottle.

  12. j l
    May 17, 2019 at 17:57

    damn, that bottle is awesome =O

  13. Adil Zamal
    May 17, 2019 at 17:57

    I am skipping this video.

  14. Shubhi verma
    May 17, 2019 at 17:57

    video is Awsom and guys how have confusion in that , they read documentation things gets more clear !!!!

  15. Muhammad Kalim
    May 17, 2019 at 17:57

    complex way

  16. M I
    May 17, 2019 at 17:57

    why the hell do you mix the (to lower case) problem with finding object in the array. this makes lot of confusion for new learners. just put it aside.

  17. Mahendra Yadav
    May 17, 2019 at 17:57

    a little bit confusing 🙁

  18. Aman Gupta
    May 17, 2019 at 17:57

    sir topic ki maa bhen kr di apne is video me kuch samaj nhi aya please vapis banao

  19. denny paul
    May 17, 2019 at 17:57

    Hello bro, Thank you for the lesson. I have a confusion in the method 1 : const index = myToDos.findIndex(function(todo, index)).
    My question is, how does the todo and index get values? because we are not calling in the function with any parameters. I understand it is a self invoking function but couldnt understand how the parameters got their value. any help would be appreciated. thanks in advance.

  20. Touhid
    May 17, 2019 at 17:57

    shouldn't he say 'array element' instead of 'array' to tell about the findIndex method around 9 minute?

  21. raghavendra shashikumar
    May 17, 2019 at 17:57

    How to return all the occurrences of search key in an array of objects??

  22. Roit Chauhan
    May 17, 2019 at 17:57

    If I use the forEach() function, but I have to print only some of the elements in the array (say from index 1 to 5 or index 0 to 8) is it possible to do so?

  23. Mohit Nayak
    May 17, 2019 at 17:57

    This video is confusing. I'm confused a bit. Previous videos are much more clear. Help.

  24. Sanyam Madaan
    May 17, 2019 at 17:57

    Sir Please make a video on Service Worker using javascript for beginners

  25. Jayashree Dhar
    May 17, 2019 at 17:57

    This video is not as clear as your previous videos. It is confusing. Doubts are there..

  26. Kai Tuo
    May 17, 2019 at 17:57

    I like your videos a lot, but not this one. I found this one is not as clearly-taught as your previous videos.

  27. Siva Sumanth
    May 17, 2019 at 17:57

    Bro how to sort array of json

  28. benz ooe
    May 17, 2019 at 17:57

    ^^

  29. Simran Knight
    May 17, 2019 at 17:57

    so damn confusing

Leave A Comment

You must be logged in to post a comment.