array-to-sentence-ja

Japanese version of array-to-sentence

Usage no npm install needed!

<script type="module">
  import arrayToSentenceJa from 'https://cdn.skypack.dev/array-to-sentence-ja';
</script>

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