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