join -> jsxJoin
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
51c112fd82
commit
9f227893b1
3 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@ import React from "react";
|
|||
* @param joiner the string/JSX.Element to join with
|
||||
* @returns the joined array
|
||||
*/
|
||||
export function join(array: Array<string | JSX.Element>, joiner?: string | JSX.Element): JSX.Element {
|
||||
export function jsxJoin(array: Array<string | JSX.Element>, joiner?: string | JSX.Element): JSX.Element {
|
||||
const newArray = [];
|
||||
array.forEach((element, index) => {
|
||||
newArray.push(element, (index === array.length - 1) ? null : joiner);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue