1/* The path.join() method joins all given path segments together using
2the platform-specific separator as a delimiter, then normalizes the
3resulting path. */
4
5path.join('/foo', 'bar', 'baz/asdf', 'quux', '..');
6// Returns: '/foo/bar/baz/asdf'
7
8path.join('foo', {}, 'bar');
9// Throws 'TypeError: Path must be a string. Received {}'