hi i am brand new
i'm writing a custom function for google sheets
i intended for text.split() to return an array
i dont understand what TypeError: Cannot read properties of undefined (reading 'split') means
it looks like it goes something like string.split(sep) -> array
function toMinutes(time) {
const array = time.split(":");
//return (array[0] * 60) + array[1];
}
//console.log(toMinutes("1:20"))
toMinutes("1:20")