Do you really know how to use a Map in Javascript? 🤔

Поділитися
Вставка
  • Опубліковано 11 лип 2024

КОМЕНТАРІ • 14

  • @rajfekar4839
    @rajfekar4839 Рік тому +2

    map object 💙

  • @userou-ig1ze
    @userou-ig1ze Рік тому +4

    I don't really get why a object or array is any less useful. looping through a map seems more tedious

    • @jimmy3797
      @jimmy3797 11 місяців тому +2

      well, the point is so that you just run map.get(0) and get the value of zero so you don’t have to loop at all

  • @hemantwasthere
    @hemantwasthere Рік тому +2

    🔥🔥

  • @kecapo
    @kecapo 6 місяців тому

    I like Map and Set instances, the problem comes when you need to serialize values

  • @zeeeeeman
    @zeeeeeman Рік тому

    "Map through?" "Iterate through"

  • @kaushikkundu
    @kaushikkundu Рік тому +1

    Cfbr❤❤

  • @shubhamchakraborty7904
    @shubhamchakraborty7904 5 місяців тому

    Beauty

  • @ajithm3804
    @ajithm3804 Рік тому +3

    is it like a hashmap, i mean is the lookup time is constant?

    • @pb8655
      @pb8655 Рік тому +1

      It’s using a hashmap under the hood so yea the look up time is very efficient. Has alot better performance than the standard js object

  • @goldmikanik8274
    @goldmikanik8274 7 місяців тому

    Why I would Map instead of array? Not convinced, unless performance is better 🤷‍♂️

  • @RodrigoMorenoIngenieria
    @RodrigoMorenoIngenieria 11 місяців тому

    Moar

  • @gordonfreimann
    @gordonfreimann Рік тому

    thanks for the 999.999.999th video explaning map in javascript.