JavaScript Array with() Method (new in ES 2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 20

  • @fieryscorpion
    @fieryscorpion 8 หลายเดือนก่อน +2

    That was an excellent summary of .with(). Your teaching style is second to none.
    Thank you!
    Would you also make videos/books on .NET and Java/ Spring Boot?

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน +1

      Thank you very much!
      I did one .NET/C# video and it didn't get many views. But maybe I'll try again?
      Sorry to say that I don't know Java/Spring Boot.
      Thanks again!

    • @fieryscorpion
      @fieryscorpion 8 หลายเดือนก่อน

      @@deborah_kurata Thank you.
      After .NET community sees your videos, they’ll be hooked! 😀

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน +1

      @@fieryscorpion That is kind of you to say. Thank you!

  • @dg-cg5gi
    @dg-cg5gi 7 หลายเดือนก่อน +1

    Any chance for a long video on Angular 17 enhancements? Like a similar course that you have on Pluralsight? Would love to watch that and learn!

  • @OCEMTechZone
    @OCEMTechZone 8 หลายเดือนก่อน +1

    🎉

  • @danielabonvini
    @danielabonvini 8 หลายเดือนก่อน +1

    Hi Deborah, great video as always!
    I was wondering: is with() almost the same as toSpliced() with the only difference the fact that you can't optionally select only a part of the array to copy instead of all the elements?

    • @deborah_kurata
      @deborah_kurata  7 หลายเดือนก่อน +2

      Thanks!
      with() is being focused on changing one element. toSpliced() is more flexible and allows for removing items, replacing one element with multiple elements, and inserting new elements

  • @attoumak
    @attoumak 8 หลายเดือนก่อน +1

    They could have chosen an explicit name, why naming it with() instead of replace() 😞

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน

      Yeah, it would have been interesting to have been in that conversation! 😄

  • @StephenRayner
    @StephenRayner 8 หลายเดือนก่อน

    Please stop using let 😢😂… you will have all these people coding immutable which is not good unless it’s needed.
    Use const

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน +3

      Let's think though this a moment.
      Say I have an array bound to a UI element. Let's call that variable "ages".
      If I want to modify that array *and* have it appear updated in the UI, I need to change that same variable to a new array. I can do that in an *immutable* way by creating a new array and assigning it to that same variable. To change the variable, I need a "let".

  • @עומרלובקו
    @עומרלובקו 7 หลายเดือนก่อน +1

    MY IDOL

  • @richarddefortune1329
    @richarddefortune1329 8 หลายเดือนก่อน +2

    Great as usually

  • @ashishnayak2666
    @ashishnayak2666 8 หลายเดือนก่อน +1

    Awesome explanation 👏

  • @dee.s.4513
    @dee.s.4513 8 หลายเดือนก่อน

    Deborah, please zoom in on your code text. And, more JS videos please.

    • @deborah_kurata
      @deborah_kurata  8 หลายเดือนก่อน +1

      Thank you for the suggestions!