Filename component of a URL/path, without directory, extension, or query string. Returns null when no usable name can be derived: a path ending in /, or a stem containing a malformed percent-escape that decodeURIComponent rejects.
null
/
decodeURIComponent
Filename component of a URL/path, without directory, extension, or query string. Returns
nullwhen no usable name can be derived: a path ending in/, or a stem containing a malformed percent-escape thatdecodeURIComponentrejects.