I have a custom function with the same structure as below,where a array is a argument, but when used, it returns/logs the array+ a null:
var ranges_pl1 = ["range!G2:G500"];
function compara_clientes(ranges_pl1){
Logger.log(ranges_pl1);
const ranges_pl1_lenght = ranges_pl1.length;
return some_array
}
function autoDepar(range_1){
var lista_clientes_novos = compara_clientes(range_1);
//more steps here
}
autoDepar(ranges_pl1)
The code runs normally, but it keeps giving that extra null from calling the array.