array-to-sentence-ja
v2.0.0
Published
Japanese version of array-to-sentence
Downloads
6,987
Maintainers
Readme
array-to-sentence-ja
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
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