Untitled

Run Settings
LanguageJavaScript
Language Version
Run Command
const firstRecCurr = (arr) => { let temp = {}; for(let i=0; i<arr.length; i++){ if(arr[i] in temp){ return arr[i]; } else { temp[i] = 0; } } } const arr = [2, 1, 5, 3, 2, 5] console.log(firstRecCurr(arr))
Editor Settings
Theme
Key bindings
Full width
Lines