0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

jacaScript Mapをfor文で処理する

Last updated at Posted at 2020-06-02

環境:

GAS

qiita Practice.js
const this_spread = SpreadsheetApp.getActiveSpreadsheet();

function createMap() {
  const criteria_sheet = this_spread.getSheetByName('criteria');
  let name_map = new Map();
  for(let count = 1; count <= 4; count ++){
    let key = criteria_sheet.getRange(count,1).getValue();
    let value = criteria_sheet.getRange(count,2).getValue();
    name_map.set(key, value);
  }
  return name_map
}

0
0
8

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?