How can I check whether url only contains the domain in javascript?
let s = 'some url string';
that must be working like below.
https://google.com/ --> true
https://docs.google.com/ --> true
https://google.com/blabla --> false
https://google.com/blabla/ ---> false
https://docs.google.com/blabla/ ---> false