JSFiddle - React, Tailwind, and code Playground
by 420
JavaScript
const url = "http://www.youtube.com/apple"
const b = url.replace(/(^\w+:|^)\/\//, "").split("/");
console.log(b)
by 420
const url = "http://www.youtube.com/apple"
const b = url.replace(/(^\w+:|^)\/\//, "").split("/");
console.log(b)