https://github.com/shinnn/array-to-sentence-ja
Japanese version of array-to-sentence
https://github.com/shinnn/array-to-sentence-ja
Last synced: 2 months ago
JSON representation
Japanese version of array-to-sentence
- Host: GitHub
- URL: https://github.com/shinnn/array-to-sentence-ja
- Owner: shinnn
- License: isc
- Created: 2016-06-15T07:30:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T03:11:32.000Z (over 6 years ago)
- Last Synced: 2025-06-28T23:43:49.344Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 43.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# array-to-sentence-ja
[](https://www.npmjs.com/package/array-to-sentence-ja)
[](https://travis-ci.com/shinnn/array-to-sentence-ja)
[](https://coveralls.io/github/shinnn/array-to-sentence-ja?branch=master)Japanese version of [array-to-sentence](https://github.com/shinnn/array-to-sentence):
> Join all elements of an array and create a human-readable string
```javascript
import arrayToSentenceJa from 'array-to-sentence-ja';arrayToSentenceJa(['春', '夏', '秋', '冬']); //=> '春、夏、秋および冬'
```## Installation
[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/getting-started/what-is-npm).
```
npm install array-to-sentence-ja
```## API
### arrayToSentenceJa(*array* [, *options*])
*array*: `Array`
*options*: `Object`
Return: `string`Almost the same as [array-to-sentence](https://github.com/shinnn/array-to-sentence#arraytosentencearray--options), except that [`separator`](https://github.com/shinnn/array-to-sentence#optionsseparator) option defaults to `'、'`, and [`lastSeparator`](https://github.com/shinnn/array-to-sentence#optionslastseparator) option defaults to `'および'`.
```javascript
arrayToSentenceJa(['春', '夏', '秋', '冬'], {lastSeparator: '、そして'}); //=> '春、夏、秋、そして冬'
```## License
[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe