Yado_tech

旅館+ITとはなんぞ

2017-09-08から1日間の記事一覧

配列を転置する

stackoverflow.com より Spreadsheetで転置して貼り付けたいときあるもんね。 function transpose(a) { // Calculate the width and height of the Array var w = a.length || 0; var h = a[0] instanceof Array ? a[0].length : 0; // In case it is a zero…