【MACRO】Google Apps Script 質問スレ【DRIVE】 (968レス)
【MACRO】Google Apps Script 質問スレ【DRIVE】 http://mevius.5ch.net/test/read.cgi/tech/1404007623/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
リロード規制
です。10分ほどで解除するので、
他のブラウザ
へ避難してください。
907: デフォルトの名無しさん [sage] 2023/02/21(火) 02:43:28.40 ID:6tAoYaOK >>906 flat使わなくてもいい for(let i = 0; i< array.length; i++) { for(let j = 0; j< array[i].length; j++) { if(before.includes(array[i][j])) { array[i][j] = after[before.indexOf(array[i][j])]; } } } map使うなら array2 = array.map(r => r.map(c => before.includes(c) ? after[before.indexOf(c)] : c)); http://mevius.5ch.net/test/read.cgi/tech/1404007623/907
908: 898 [sage] 2023/02/21(火) 08:58:31.52 ID:B3qxCQs3 >>907 そのarray[i][j]の[j]を入れるとindexOfにしてもincludesにしてもうちの環境?では何故かエラー出て読み込めなかったんですよ。( 確かcannot read properties of undefinedだった筈) それ外すとエラーなく読んだので仕方なくflat入れた次第です。 因みに arrayX=array[x] arrayY=array[y] みたいに入れ子しても駄目でした。 http://mevius.5ch.net/test/read.cgi/tech/1404007623/908
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.028s