npm.io
1.0.4 • Published 5 years ago

jsmp-infra-helplfull-things

Licence
ISC
Version
1.0.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0

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.

Keywords