メインコンテンツにスキップ

lodashgs

Lodash is a library that enables the use of the lodash.js library in Google Apps Script

AI Summary

LodashGS

Enables lodash.js usage in Google Apps Script.

Target Users

Intermediate GAS developers wanting lodash utilities in their scripts.

Problems Solved

Lodash.js cannot be used directly in Google Apps Script environment.

Script ID

  1. In GAS Editor: Click "Libraries +" → Paste into "Script ID" field → Click "Look up"
  2. "lodashgs" will appear in the search results
  3. Select the latest version (highest number) from "Version" dropdown
  4. Click "Add"

Tags

Main Features
1
Easy library addition

Add via GAS editor Libraries using key `1SQ0PlSMwndIuOAgtVJdjxsuXueECtY9OGejVDS37ckSVbMll73EXf2PW` and Lodash identifier.

2
Lodash 4.17.21 compat

Version 6 (v1.0.2-1 (4.17.21)) corresponds to lodash 4.17.21.

3
Simple loading

Obtain lodash instance with LodashGS.load() and assign to var/const _.

Examples

Main Functions

FunctionDescription
LodashGS.load()Loads lodash instance.

Examples

Loading LodashGS library
/**
 * LodashGSライブラリのロード
 * ・ロードメソッド呼び出し: LodashGS.load()
 * ・var代入: var _ = LodashGS.load()
 * ・const代入(v8): const _ = LodashGS.load()
 */
function loadLodash() {
  var _ = LodashGS.load();
  // or const _ = LodashGS.load();
}

Sample Code

Post a Sample

No sample codes for this library yet

Be the first to post a sample!

Post a Sample