1.0.8 • Published 4 years ago

jsmp-infra-hw6 v1.0.8

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago