buildPath
buildPath(...paths): string
パスを結合して返却
Example
// 返値: path/to/test
buildPath('path/to/', null, undefined, 'test')
// 返値: path/to/test
buildPath('/', 'path/to/', null, undefined, 'test')
// 返値: /blog/120
buildPath('/blog', 120)
// 返値: /blog/120
buildPath(' /blog/ ', 120, '/')
Parameters
| Name | Type |
|---|---|
...paths | (undefined | null | string | number)[] |
Returns
string