1.1.3 • Published 7 years ago

trend-array-to-string v1.1.3

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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
1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago