reduceRight()

In Google Apps Script, the reduceRight() method is an array method that works the same way as the reduce() method, but it iterates over the elements in the array from right to left instead of from left to right. The method takes a callback function as an argument, which is called for each element in … Read more

reduce() Function

In Google Apps Script, the reduce() The array method applies a function to each element in an array to reduce the array to a single value. The method takes a callback function as an argument, which calls for each array element. The callback function should return the accumulated result of the previous iterations and the … Read more

some() Function

In Google Apps Script, the some() method is an array method that tests whether at least one element in the array passes a specified test. The method takes a callback function as an argument, which is called for each element in the array. The callback function should return a boolean value: true if the element … Read more

map() Function

In Google Apps Script, the map() method is an array method that creates a new array with the results of calling a provided function on every element in the array. The method takes a callback function as an argument, which is called for each element in the array. The callback function should return the new … Read more

forEach() Function

In Google Apps Script, the forEach() method is an array method that calls a provided function once for each element in an array, in order. The method takes a callback function as an argument, which is called for each element in the array. The callback function can take up to three arguments: the value of … Read more

filter() Function

In Google Apps Script, the filter() method is an array method that creates a new array with all elements that pass a specified test. It takes a callback function as an argument, which is called for each element in the array. The callback function should return a boolean value: true if the element passes the … Read more

every() Function

In Google Apps Script, the every() method is an array method that tests whether all elements in an array pass a specified test. It takes a callback function as an argument, which is called for each element in the array. The callback function should return a boolean value: true if the element passes the test, … Read more

LastIndexOf() Function

In Google Apps Script, the lastIndexOf() method is an array method that allows you to search for a specified element in an array and returns its index position. The method searches the array from the end and returns the index of the last occurrence of the specified element. Here is an example of using the … Read more

IndexOf() Function

In Google Apps Script, the indexOf() method is an array method that allows you to search for a specified element in an array and returns its index position. The method searches the array from the beginning and returns the index of the first occurrence of the specified element. Here is an example of using the … Read more

Concat Function ()

In Google Apps Script, the concat() method is an array method that allows you to join two or more arrays into a single array. It creates a new array that contains the elements of the original arrays in the order they were passed as arguments. Here is an example of using the concat() method to … Read more