docs(typedoc): document function examples
This commit is contained in:
@@ -20,6 +20,14 @@
|
||||
/**
|
||||
* Conditionally joins given strings
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* let isAdmin = true
|
||||
*
|
||||
* // prints "Hello, Administrator!"
|
||||
* console.log(conditionalJoin(["Hello,", isAdmin ? "Administrator" : "User", "!"], " "))
|
||||
* ```
|
||||
*
|
||||
* @param array - strings to join
|
||||
* @param joinChar - character used to join strings
|
||||
* @returns new string
|
||||
|
||||
Reference in New Issue
Block a user