Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove the duplicate element from array without using in build function in javascript

let chars = ['A', 'B', 'A', 'C', 'B'];

chars.forEach((element, index) => {
    console.log(`${element} - ${index} - ${chars.indexOf(element)}`);
});
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #element #array #build #function #javascript
ADD COMMENT
Topic
Name
7+8 =