LANG SELRCT

Apps Script Reference  (Create: Create new Spreadsheet | Create new Apps Script

Monday, January 8, 2018

配列の末尾の要素を削除する


["a", "b", "c"] を ["a", "b"] にするコードの例



コード.gs
function myFunction() {
  var array = ["a", "b", "c"];
  array.pop();
  Logger.log(array);
}
意訳
この機能がやること
配列を用意して
末尾の要素を削除して
配列をログに出す



Latest post

Extracting data from Google Sheets with regular expressions

Introduction Regular expressions are a powerful tool that can be used to extract data from text.  In Google Sheets, regular expressions ca...