JSFiddle - React, Tailwind, and code Playground

JavaScript

var name = "one.two.three";

var output = name.split('.');

alert(output.substring([1],[2]);