JSFiddle - React, Tailwind, and code Playground

by graphettion

JavaScript

let url = "/api/attachments/a74a320e-b2de-43e6-811e-3b5d34659100/disappointment-panda.jpg"

console.log(url.split('/', 4).pop())