
4,384 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
office Excelで、セル範囲の値を取得した場合、2次元配列で取得されますが、
それを1次元配列に変換したいです。
flat関数を使用すると、logでは1次配列になっておりますが、
エラーに「Property 'flat' does not exist on type '(string | number | boolean)[][]'.」と記載されます。
なぜでしょうか?
flat関数は使用できないのでしょうか?
使用できない場合、1次配列に変換するにはどのようにすれば良いでしょうか?