1.0.3 • Published 4 years ago
jsmp-infra-aleksandr-voinov-hw6 v1.0.3
Ultimate strings and arrays package - hw6
Install
$ npm install hw6
sliceArray
Usage
const hw6 = require('hw6');
hw6.sliceArray(array, start, end);
Arguments
array (Array): The array to slice.
[start=0] (number): The start position.
[end=array.length] (number): The end position.
replaceString
Usage
const hw6 = require('hw6');
hw6.replaceString(string, pattern, replacement);
Arguments
[string=''] (string): The string to modify.
pattern (RegExp|string): The pattern to replace.
replacement (Function|string): The match replacement.