array-to-sentence-ja

Japanese version of array-to-sentence

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
array-to-sentence-ja
102.0.05 years ago6 years agoMinified + gzip package size for array-to-sentence-ja in KB

Readme

array-to-sentence-ja
npm version Build Status Coverage Status
Japanese version of array-to-sentence:
Join all elements of an array and create a human-readable string

import arrayToSentenceJa from 'array-to-sentence-ja';

arrayToSentenceJa(['春', '夏', '秋', '冬']); //=> '春、夏、秋および冬'

Installation

Use npm.
npm install array-to-sentence-ja

API

arrayToSentenceJa(array , options)

array: Array<any>
options: Object
Return: string
Almost the same as array-to-sentence, except that separator option defaults to '、', and lastSeparator option defaults to 'および'.
arrayToSentenceJa(['春', '夏', '秋', '冬'], {lastSeparator: '、そして'}); //=> '春、夏、秋、そして冬'

License

ISC License © 2018 Shinnosuke Watanabe