Google Scripts How To AutoComplete for custom functions

Опубликовано: 16 Октябрь 2021
на канале: gocha's learning space
25
0

Add @customfunction and re-run the script.

--
/**
A custom function that converts meters to miles.
*
@param {Number} meters The distance in meters.
@return {Number} The distance in miles.
@customfunction
*/
function metersToMiles(meters) {
if (typeof meters != 'number') {
return null;
}
return meters / 1000 * 0.621371;
}

--