🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

listing-comma

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

listing-comma

Join an array into a string list of items with a conjunction before the last item.

unpublished
latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Listing Comma

Join an array into a string list of items with a conjunction before the last item.

Install

npm i listing-comma

Example

import {listingComma} from 'listing-comma';

const items = ['apple', 'banana', 'pear'];

const listString = listingComma('or', items);

assert(listString === 'apple, banana, or pear');

FAQs

Package last updated on 28 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts