Skip to content

Commit

Permalink
💡 Add TypeDoc comment for B.join
Browse files Browse the repository at this point in the history
  • Loading branch information
KsRyY committed Jan 28, 2020
1 parent def5cbd commit d65ca7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/join.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* Test if the the second argument is an instance of the first argument. (curried)
* Join elements in an array together with a specified seperator (curried)
* ```js
* instanceOf(Number)(new Number(1)) //=> true
* instanceOf(Number)(1) //=> false
* join([1, 2, 3])('-') //=> '1-2-3'
* join(['la', 'laa', 'lala])('-') //=> 'la-laa-lala'
* ```
*/
function join(list: Array<number | string>): (seperator: string) => string
/**
* Test if the the second argument is an instance of the first argument.
* Join elements in an array together with a specified seperator (curried)
* ```js
* instanceOf(Number, new Number(1)) //=> true
* instanceOf(Number, 1) //=> false
* join([1, 2, 3], '-') //=> '1-2-3'
* join(['la', 'laa', 'lala], '-') //=> 'la-laa-lala'
* ```
*/
function join(list: Array<number | string>, seperator: string): string
Expand Down

0 comments on commit d65ca7d

Please sign in to comment.