JSFiddle - React, Tailwind, and code Playground

JavaScript

var arr = ['ab','pq','mn','ab','mn','ab']