trend-array-to-string

1.1.3 • Public • Published

trend-array-to-string

Not your usual array to string

Installation

npm i -S trend-array-to-string

Usage

ES6

import arrayToString from 'trend-array-to-string';
const array = [1, 3, 4, 5, 6, 7, 8];

arrayToString(array).then(res => console.log('res', res)); // 1,3-8

ES5

var arrayToString = require('trend-array-to-string').default;
var array = [1, 3, 4, 5, 6, 7, 8];

arrayToString(array).then(function (res) {
  console.log('res', res); // 1,3-8
});

Install dev dependencies and run tests

npm i
npm test

Readme

Keywords

none

Package Sidebar

Install

npm i trend-array-to-string

Weekly Downloads

2

Version

1.1.3

License

ISC

Last publish

Collaborators

  • pimmey