Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. const dataLists = new Map();//種縦列のデータを整理するためMapオブジェクト
  2. Object.keys(workBook.Sheets["3-2(1)"]).forEach(v=>{//取得したオブジェクトを整理する
  3. const prop = v.substring(0,1);
  4. if(!dataLists.get(prop)){//各縦列のMapオブジェクトが存在しなければ作成する
  5. dataLists.set(prop,new Map());
  6. }
  7. dataLists.get(prop).set(v,workBook.Sheets["3-2(1)"][v].w);
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement