From d65ca7d30fd8fe35b4e15c3ea0d3756f3337189d Mon Sep 17 00:00:00 2001 From: KsRyY Date: Tue, 28 Jan 2020 15:32:29 +0800 Subject: [PATCH] :bulb: Add TypeDoc comment for B.join --- src/join.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/join.ts b/src/join.ts index 3c4ea10d..b9a30c70 100755 --- a/src/join.ts +++ b/src/join.ts @@ -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): (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, seperator: string): string