v1
3/19/2020 by hkotsubo -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
var array = [1,1,1,2,3,4,4,5];
var models = [];
delete caserun single casemove downdrag and drop case


ready



for ( var i = 0; i < array.length; i++ ) {
   if ( array.indexOf( array[ i ] ) === i ) {
      models.push(array[ i ] );
   }
}
delete caserun single casemove upmove downdrag and drop case


ready



var encontrados = {};
for (var i = 0; i < array.length; i++) {
    if (encontrados[array[i]] === undefined){
       encontrados[array[i]] = true;
       models.push(array[i]);
    }
}
delete caserun single casemove upmove downdrag and drop case


ready



models = Array.from(new Set(array));
delete caserun single casemove updrag and drop case


ready



models = [... new Set(array)];
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN