Тёмный

JavaScript Array Methods , flat , flatMap , reduceRight, copyWithin 

techsith
Подписаться 147 тыс.
Просмотров 35 тыс.
50% 1

New JavaScript Prototype Array Methods .flat() , .flatMap() , .reduceRight() and .copyWithin() and their applications. ES6, ES7, ES8 , ES2017, ES2018
#ArrayFlat #FlatMap, #reduceRIght #copyWithin
Help the channel via patron and buying merchandise
* / techsith
* teespring.com/...
Follow me for technology updates
* / techsith
* / techsith
* / techsith1
* / 13677140
* / patelhemil
Help me translate this video.
*
Note: use translate.goog... to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@Lohithnimmala
@Lohithnimmala 5 лет назад
Cracked the Interview and Got a Job offer!!!!! Thanks to your videos, I am able to understand advanced Java script concepts very easily and evaluate myself with your interview related videos. Thanks so much, you inspire many
@Techsithtube
@Techsithtube 5 лет назад
Good Luck with your new Job Lohith, keep learning where ever you go.
@Lohithnimmala
@Lohithnimmala 5 лет назад
@@Techsithtube Thank you :)
@Colstonewall
@Colstonewall 4 года назад
That;s awesome!
@DevangPatil
@DevangPatil 5 лет назад
you can use reduceRight for finding and comparing palindrom (reverse string) strings.
@Techsithtube
@Techsithtube 5 лет назад
That is a great application . Thanks for sharing.
@liyan542
@liyan542 4 года назад
function palindrome(s) { let reversed = s.split('').reduceRight((a,v) => a + v); return s === reversed; } Yes, I tested It works :)
@ashishaggarwal1842
@ashishaggarwal1842 4 года назад
@@liyan542 how would this perform against reversing string using s.split('').reverse().join('') ? Like which is better ?
@ajantikaa
@ajantikaa 2 года назад
Palindrome was always possible with reduce. Check this let str = "An apple a day" const revStr = str.split("").reduce((c , v)=> v+c ); console.log(revStr);
@travezripley
@travezripley 5 лет назад
All your videos are great, they open up so many more avenues and tools for us kids to get a handle on JavaScript! Thanks!
@K3dev
@K3dev 5 лет назад
Thanks, the flat and flatmap are really useful for WebGL, that way you can keep the buffers organized, with flat you can keep your vertex positions in groups of xyz [[1,0,1], [1,0,-1]] and with flatmap you can keep the other vertex attributes in separated arrays for example your UVs in another array and just join it with flatmap instead of keeping a long unidimensional array with all these values mixed. Thanks again, I didn't know about these methods.
@Techsithtube
@Techsithtube 5 лет назад
Good point. thanks for sharing.
@pranitraj7701
@pranitraj7701 3 года назад
Very awesome Video. Keep up this simplicity in your videos. Just Loved learning it from here.
@Techsithtube
@Techsithtube 3 года назад
Glad you liked it!
@RedEyedJedi
@RedEyedJedi 4 года назад
I love this channel, you go into great detail on every subject. The only other channel that has content of this quality on web development is Steve Griffith.
@Techsithtube
@Techsithtube 4 года назад
Glad you enjoy it! Thanks you for watching!
@RedEyedJedi
@RedEyedJedi 4 года назад
@@Techsithtube Thank you for making the videos so I can watch them. I learn a lot from you and I appreciate the effort it takes you. You are on my list of donations when I get my development job.
@bidishapaul9475
@bidishapaul9475 3 года назад
Thank you for making these type of videos , it is really helpful.
@dharani-mr7uj
@dharani-mr7uj 5 лет назад
Please make videos for angular2+ interview questions and answers
@ajantikaa
@ajantikaa 2 года назад
Great :) Palindrom was always available using reduce.
@ananthnaren9183
@ananthnaren9183 4 года назад
Hi i'm Ananth from india , nice to meet ,I'm a MS software engineer graduated , I have firm desire to learn programming and programming languages android , ios , frontend , backend , data structures & algorithms ,full stack development and object oriented programming . Its my dream and wish to work as remote developer and freelancer also would like to keep learn more in software field.
@mukeshm280
@mukeshm280 5 лет назад
using spread operator var matrix = [[1,2,3],[4,5,6]]; console.log([...matrix[0], ...matrix[1]]); //output: [1, 2, 3, 4, 5, 6]
@ChrisWi88
@ChrisWi88 4 года назад
What if you have 1000 rows?
@arjunmehra6655
@arjunmehra6655 5 лет назад
You can use reduceRight to create compose() functions
@Techsithtube
@Techsithtube 5 лет назад
Thanks for sharing!
@arjunmehra6655
@arjunmehra6655 5 лет назад
Thanks sir, for your informative videos
@Islamicforum-2007
@Islamicforum-2007 2 года назад
The best video for me
@abhilashkokkonda1713
@abhilashkokkonda1713 5 лет назад
Excellent
@mr.webdev3700
@mr.webdev3700 5 лет назад
Thank you for the video!
@saife2905
@saife2905 3 года назад
Love ur videos
@luizelias6155
@luizelias6155 5 лет назад
Awesome! Thanks
@enmimaquinaandaba
@enmimaquinaandaba 3 года назад
Thank you, very helpful!
@Techsithtube
@Techsithtube 3 года назад
Glad it was helpful!
@mikerodrigues3530
@mikerodrigues3530 3 года назад
I like ur videos.. Very informative
@denzalwilliams5609
@denzalwilliams5609 3 года назад
well explained thanks
@count_of_pizza
@count_of_pizza 5 лет назад
After watching your video I started to think that you should consider doing a tutorial about RxJS. You have gift for explaining complicated things.
@Techsithtube
@Techsithtube 5 лет назад
I will consider it. RxJS can be tough to explain . let me break it down the concept .
@AsimZaidiH
@AsimZaidiH 5 лет назад
Hm I didn't feel like the copyWithin explanation was strong, still super confused about its behavior.
@NeoCoding
@NeoCoding 5 лет назад
copyWithin is scary! I hope would never use it))
@Techsithtube
@Techsithtube 5 лет назад
Yes, Its kind of weird but i heard its used in nodejs a lot.
@NeoCoding
@NeoCoding 5 лет назад
@@Techsithtube ups it seems i've just lost my interest to nodejs))
@HIghtowerSever
@HIghtowerSever 4 года назад
Always liked.
@zafariqbal92
@zafariqbal92 5 лет назад
Thanks
@oghenefokethompson7407
@oghenefokethompson7407 4 года назад
Good tutorial
@pulinshah4951
@pulinshah4951 5 лет назад
Which programming language should I learn that is most useful for college and job application?
@Techsithtube
@Techsithtube 5 лет назад
I would suggest python for students.
@tarunchanderbhatt
@tarunchanderbhatt 5 лет назад
copywith is not understend your video is great
@mokkamokka4097
@mokkamokka4097 5 лет назад
goody.
@tajamulhusen6051
@tajamulhusen6051 5 лет назад
Sir please suggest some best backends for Web development...
@AlexGelinas42069
@AlexGelinas42069 5 лет назад
Node is very popular if you want to stick with JS! But you can use many, especially with Python =)
@Techsithtube
@Techsithtube 5 лет назад
I would agree with Alex, Node is a great choice if you already know JS.
@tajamulhusen6051
@tajamulhusen6051 5 лет назад
@@Techsithtube thanks sir..
@tajamulhusen6051
@tajamulhusen6051 5 лет назад
@@AlexGelinas42069 thanks mate..
@anikettiwari6885
@anikettiwari6885 5 лет назад
Javascript have started copying Ruby on rails methods
@Techsithtube
@Techsithtube 5 лет назад
JavaScript have been copying from not only ruby but from Java, Python and others..
@jamjam3448
@jamjam3448 4 года назад
I still don't understand copyWithin
@Official_R_deep
@Official_R_deep 4 года назад
Plz provide which website get latest JavaScript vision info
@mallasaugat
@mallasaugat 3 года назад
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
@shineLouisShine
@shineLouisShine Год назад
JavaScript "infinity"? Definitly an error. Thanks anyway
@rajashekhar433
@rajashekhar433 5 лет назад
What about REFLECT OBJECT reflect.defineProperty
@Techsithtube
@Techsithtube 5 лет назад
That goes into meta programming category. I might create a video on that soon.
@binodrd5943
@binodrd5943 5 лет назад
First View, First Like and First Comment.
@DamianNAudio
@DamianNAudio 4 года назад
Any real-world use case of .copyWithin() ??
@ganinayeem
@ganinayeem 4 года назад
Hi many thanks for the grt video 😊, could you please also share a video on how we can use this flat method for json array object ?
@janaks7016
@janaks7016 5 лет назад
can u do video for observable operator