JSFiddle - React, Tailwind, and code Playground

by dshilkret

JavaScript

var url = "https://dtecho365.sharepoint.com/sites/ServiceNowDev1/Dev1Lib4/DavidShilkretUpdateSetWithRecordsManagementStuffFromSat.xml";
var last = url.lastIndexOf("/");
var x = url.slice(last + 1);
console.log(last);
console.log(x);