JavaScript Arrays & Map Method Tutorial - Google Apps Script Part 4

preview_player
Показать описание
Learn how to use JavaScript array map method with one or two dimensional arrays. Google Apps Script Intermediate Tutorial Part 4

#javascript #arrays #map #method
Рекомендации по теме
Комментарии
Автор

This is exactly what I have been wanting since your last Apps Script + Sheets series! Been subscriber since the start and I am always looking forward to your next video.
You deserve more praises than I can give.
This channel has changed my life. No joke. These videos got me back to coding, and for that, I cannot thank you enough.

Wrynst
Автор

Thank you!!!. Could be hours watching your videos, they are superlative on teaching GAS and JS. Not everyone could be a good teacher...you are just perfect!

giamar
Автор

This is the simplest and very efficient tutorial about map in entire YouTube. Really appreciate your work

Ancode
Автор

Thanks a lot for great tutorials. God bless you

KhalilYasser
Автор

I am coding after 35 year. Seriously, after Qbasic and fortran. Thanks so much for these videos.
That said, I think a more elegant way of doing the age increment would be
row[1]++;
return row;

GautamSamant
Автор

Thank you very much, exactly the very thing I am looking for either, can express enough thanks for you to share this. Thanks a lot!

rotrose
Автор

Your style of presentation is spot on.

brighnquisitive
Автор

Map is the most interesting method i found in JavaScript

ABsazerNer
Автор

I have been following the tutorials for a while and they are very helpful. I am now building a script and I am using the map method in a but i noticed it overwrites the data in the original array it is mapping. Is this supposed to happen?

jodelo
Автор

Hi Teacher! Thank you as i always say for your excellent classes. Would you mind to show as how to add a random selection to the map return list? Than you again Erne

giamar
Автор

@Learn Google Spreadsheets
/It's a translator.


특정 열에서 값들을 각각 정해진 갯수만큼 가져오는 방법이 있습니까?
(Is there a way to get a certain number of values from a particular column?)

ex) as-is..
[A, 1]
[A, 2]
[A, 3]
[B, 4]
[B, 5]
[B, 6]
[C, 7]
[C, 8]
[C, 9]

행렬의 첫번째 열에서 A는 2개, B는 1개, C는 2개 만 가져오고 싶습니다.
(In the first column of the matrix, I would like to bring 2 for A, 1 for B, and 2 for C.)

ex) to-be..
[A, 1]
[A, 2]
[B, 4]
[C, 7]
[C, 8]


p.s.
"I am watching your videos well. I'm very impressed. Thank you.
"

sneijder
Автор

Hello! I’m checking out this video because I only have a loose grasp as to how to make the map method works. I’ve looked all over for an answer about this, but: do you, personally, know how I could do an if statement to check if an element in an array is “null”? As in, the content of an element in the array has that specific falsey value? The problem I’m having is that, no matter what I do, the project thinks I’m testing if the presence of the element is true or false, not the literal content of the element. I’m willing to even get a direction as to proceed. I’m not sure what exact search terms will give me what I want.

twilightmarauder
Автор

Great tutorial as usual, thank you so much, is it possible to remove duplicates in the array with map?
e.g in your case, let say you have 2 Linda two times, how can you remove the whole row based on the duplicate in cell of the row?

goldyarora
Автор

What if I want to append row in this arraw. Is there anyway that It wont overwrite the other existing row? because im trying to figure out how to update and add new data in existing record in my database. can you please help me with this. thanks

markanthonyalipao
Автор

Hope you receive back as much as you give

gerardfernandez
Автор

Can you perform any date operations inside a 2D array using map function?
Like adding a day, increment a month in google sheets using script

pranodanpoudel
Автор

Thank you. How do you add the "Math.round" function to the map method? For example, what if I want to round Column C to the nearest hundredth?

hikeDiveEat
Автор

Sir, how I could change array from this?:
[ ]i
0: Array(5)
0: "tes1"
1: "tes2"
2: "tes3"
3: "tes4"
4: "tes5"
length: 5

to this Sir:
(5) ["tes1", "tes2", "tes3", "tes4", "tes5"]
0: "tes1"
1: "tes2"
2: "tes3"
3: "tes4"
4: "tes5"
length: 5

ConsulthinkProgrammer
Автор

Here's the code used in the video

KhalilYasser
Автор

Great tutorial! Thank you. Just wondered why not you have used 'column' instead of 'row' as a variable inside function!!! LOL

khairulbasar
visit shbcf.ru