1.0.0 • Published 2 years ago
concat-string-array v1.0.0
concat-string-array
Concat string found in array or list
Install
Install with npm:
$ npm i concat-string-array --save
Usage
var concat-string-array = require('concat-string-array');
concat-string-array()(10,"SSh",90,[10,10],[[4.4,["FF"]]]);
//=> 10SSh9010104.4FF
(optional) If you pass parameter add then it will be added in between those value:
console.log(concat-string-array({add:"hi"})(10,"SSh",90,[10,10],[[4.4,["FF"]]]))
//=> 10hiSShhi90hi10hi10hi4.4hiFF
(optional) If you pass parameter only_string with value true then it will concat only string :
concat-string-array({add:"hi",only_string:true})(10,"SSh",90,[10,10],[[4.4,["FF"]]])
//=> SShhiFF
(optional) If you pass parameter only_number with value true then it will add number found :
concat-string-array({add:"hi",only_number:true})(10,"SSh",90,[10,10],[[4.4,["FF"]]])
//=> 124.4
1.0.0
2 years ago