@kontentino/array-semantic-join

2.0.0 • Public • Published

Kontentino - Making social media a piece of cake

array-semantic-join by Kontentino

GITHUB: array-semantic-join

Helper function whose input is an array and output is a semantic string with joined items of the input array.

Installation

$ npm install @kontentino/array-semantic-join or $ yarn add @kontentino/array-semantic-join

Usage

import arraySemanticJoin from '@kontentino/array-semantic-join';

...
    const userNames = ['John', 'Jane', 'Patrick'];

    ...

    <span>
        {arraySemanticJoin(userNames)} // output: "John, Jane and Patrick"
    </span>
...

Docs

Function
arraySemanticJoin(inputArray: Array): String

Package Sidebar

Install

npm i @kontentino/array-semantic-join

Weekly Downloads

81

Version

2.0.0

License

MIT

Unpacked Size

4.96 kB

Total Files

6

Last publish

Collaborators

  • kontentino