1.0.0 • Published 7 years ago
trend_test_task v1.0.0
Installation
- to install this module use :
npm install trend_test_task
Usage
var reduceArrayToString = require('trend_test_task');
reduceArrayToString([1,2,3],function(err,resultString) {
if(err) console.log(err);
else console.log(resultString) //=> 1-3
})
- the first argument should be a sorted array
- the second argument should be a callback with parameters err - an Error object and resultString - a string
1.0.0
7 years ago