jsmp-infra-hw6
v1.0.8
Published
Package with functions
Downloads
3
Readme
JSMP-INFRA-HW-SIX
Simple module with two functions for format arrays and strings
Install
$ npm i --save jsmp-infra-hw-six
Description
formatArray(Array [, number = 1])
Function will return an array with only number values where all values exponentiationed
Basic Usage
import { formatArray } from 'jsmp-infra-hw-six';
const array = [1, 2, 4];
const formattedArray = formatArray(array, 2); //[1, 4, 16];
formatString(String, nameOfFunction [, args])
Function will return a string which will be formatted with selected function;
Basic Usage
import { formatString } from 'jsmp-infra-hw-six';
const string = 'Awesome string which need to update';
const formattedString = formatString(string, 'kebabCase'); //'awesome-string-which-need-to-update'
Test
$ npm run compile
$ npm run test