url-is-protoless
An incredibly simple utility to check if a given url does not have a protocol, while still representing a path. This is typically used to determine if found urls are relative rather than absolute.
Table of Contents
isProtoless
Returns if a url does not have a protocol, while still representing a path.
Parameters
tUrl
string the url to test
Examples
const isProtoless = console // trueconsole // falseconsole // true
Returns boolean whether the url is without a protocol