Lodash for Google Apps Script is a library that enables the use of the lodash.js library in Google Apps Script. API docs are available here.
Lodash for Google Apps Script is made available as a script library. This is how you add it to your project:
- Select "Resources" > "Libraries..." in the Google Apps Script editor.
- Enter the project key (
1SQ0PlSMwndIuOAgtVJdjxsuXueECtY9OGejVDS37ckSVbMll73EXf2PW
) in the "Find a Library" field, and choose "Select". (If you have copied the library, enter instead the project key of your copy.) - Select the highest version number, and choose Lodash as the identifier. (Do not turn on Development Mode unless you know what you are doing. The development version may not work.)
- Press Save. You can now use the Lodash library in your code.
You can find the current build for the Apps Script platform in the build folder.
- The
6
version (full descriptionv1.0.2-1 (4.17.21)
) of the LodashGS corresponds to the4.17.21
version of the Lodash.
To load LodashGS:
var _ = LodashGS.load();
Same for v8:
const _ = LodashGS.load();
A Google Apps Script project for Lodash is available here.
To copy the library, Select "File" > "Make a copy..." in the Google Apps Script editor.
{TO DO}
Lodash for Google Apps Script is released under the MIT license.