Returns the relative path from base to source, or null if not a subpath
The base path
The target path
Optional
Optional custom code point comparison function
The relative normalized path, or null if not a subpath
relative('foo/bar', 'foo/bar/baz') // returns 'baz'relative('baz', 'foo/bar') // returns null Copy
relative('foo/bar', 'foo/bar/baz') // returns 'baz'relative('baz', 'foo/bar') // returns null
Returns the relative path from base to source, or null if not a subpath