google apps script properties service
// Sets several script properties, then retrieves them and logs them.
// Initialize the service
let documentProperties = PropertiesService.getDocumentProperties();
// Set the properties
documentProperties.setProperties({
'cow': 'moo',
'sheep': 'baa',
'chicken': 'cluck'
});
// Retrieve the properties
let animalSounds = documentProperties.getProperties();
// Loop through the properties and log them
for (var kind in animalSounds) {
console.log('A %s goes %s!', kind, animalSounds[kind]);
}
// Logs:
// A chicken goes cluck!
// A cow goes moo!
// A sheep goes baa!
Also in JavaScript:
- create dynamic fields in react
- get object name javascript
- javascript loop through object properties
- javascript multiply array with scalar
- js remove json value duplicates
- add an image to a div with javascript
- create react app and tailwind
- electron quit app from renderer
- how to store textbox data while typing for chrome extension
- how to run nextjs in another port
- javascript code checker
- mock sqs.sendMessage node js
- set timer
- how to remove first element of array javascript
- replace array element javascript stack overflow
- how to use media queries in emotion
- how to print numbers in javascript
- jquery cast to string
- object literal javascript
- media queries generator script
- cypress json schema vs code
- return an array of strings from an array of objects js
- javascript parseint string with comma
- jquery OR operator