Napoleonic Panda Machine

    join-strings-in-array

    0.0.4 • Public • Published

    join-strings-in-array

    Joins strings in given array with the given or default delimiter. With the flag trims last delimiter in non last items

    Instalation

    npm i --save join-strings-in-array
    

    Arguments

    joinStringsInArray(array[, delimeter = ' ', trimLast = false])

    Examples

    import joinStringsInArray from 'join-strings-in-array'
     
    joinStringsInArray(['a', 'b', {}, 'c']), // ['a b ', {}, 'c']
    joinStringsInArray(['a', 'b', {}, 'c'], true), // ['a b', {}, 'c']
    joinStringsInArray(['a', 'b', {}, 'c'], '-'), // ['a-b-', {}, 'c']
    joinStringsInArray(['a', 'b', {}, 'c'], '-', true), // ['a-b', {}, 'c']

    Install

    npm i join-strings-in-array

    DownloadsWeekly Downloads

    14

    Version

    0.0.4

    License

    ISC

    Last publish

    Collaborators

    • tyv