Skip to main content
Version: Codegen-V1.0.0

slashToDotJoin

@frost-orm/frost-web-client / Exports / slashToDotJoin

Function: slashToDotJoin

slashToDotJoin(...args): string

Just like join but with dots instead of slashes

Example

join("/users","/customers.user1")
// returns "users.customers.user1"

Parameters

NameTypeDescription
...argsstring[]multiple strings with or without surrounding slashes or dots

Returns

string

a path string consisting of all the components with a single dot between each one.