jsmp-infra-helplfull-things
v1.0.4
Published
Helpful functions witch allows to speedup work process with arrays and strings
Readme
What is it for
Get the all power of working with strings and array in JS.
Install
$ npm install jsmp-infra-helplfull-things --save
Usage
###String
import * as things from 'jsmp-infra-helplfull-things';
const result = prependToString('your string', 'prepend string');###Array
import * as things from 'jsmp-infra-helplfull-things';
const yourArray = [1, 2, 3];
const callback = coolElement => coolElement * 2;
const result = updateArrayWithCallback(yourArray, callback);##Attention
Be aware when using import/export in Node, add the field "type": "module" in package.json.
