JSFiddle - React, Tailwind, and code Playground

by Yuriy Petrichenko

JavaScript

var s = !/(.).*\1/;

alert('...'.test(s))