JSFiddle - React, Tailwind, and code Playground
by alihaideri
JavaScript
var input = [
'one',
'two'
];
for(var i in input){
if(typeof input[i+1] == undefined){
console.log("i is last");
}
}
by alihaideri
var input = [
'one',
'two'
];
for(var i in input){
if(typeof input[i+1] == undefined){
console.log("i is last");
}
}