JSFiddle - React, Tailwind, and code Playground

by Vatsal Pande

JavaScript

// Find Duplicate Elements in an Array

const nums = [1, 2, 3, 4, 2, 5, 6, 1];