join -> jsxJoin

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-22 07:47:04 +02:00
parent 51c112fd82
commit 9f227893b1
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
3 changed files with 6 additions and 6 deletions

View file

@ -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);