array-to-sentence-ja

    2.0.0 • Public • Published

    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

    Install

    npm i array-to-sentence-ja

    DownloadsWeekly Downloads

    1,158

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    4.08 kB

    Total Files

    5

    Last publish

    Collaborators

    • shinnn