Closed adeboyed closed 3 years ago
The !! before the url variable casts the value to a boolean, which means that the .match function is being called on a boolean rather than the original input string
!!
.match
Unsure whether you'd want !! to the end instead, so that it obeys the type standard
The
!!
before the url variable casts the value to a boolean, which means that the.match
function is being called on a boolean rather than the original input string