I'm friendly with python, but I need the same code in google apps script. ( the code is under the text)
Thank you in advance
I need my output like this :
plus = [[600, 'ter', 'simple'], [600, 'ter', 'simple']]
Here's my code :
function myFunction() {
var data =[[600, 'ter', 'simple'], [600, 'ter', 'simple'], [300, 'ter', 'medium'], [200, 'ter', 'Hard']]
var plus = []
for (let i = data[0]; i < data.leng; i++)
{
if ( data[i][0] == data[0][0])
{
plus.push(data)
}
}
}