1.0.4 • Published 4 years ago

jsmp-infra-utils v1.0.4

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

Functions

  • replaceElements; Replace all elements of array with provided element
  • replaceWords; Replace all words in string with provided string

Examples

Here is example how to use replaceElements

const {replaceElements} = require("jsmp-infra-utils");

const array = [123, 15 ,55];
const newArray = replaceElements(array, "?");

console.log(newArray) // ["?", "?", "?"];

Here is example how to use replaceWords

const {replaceWords} = require("jsmp-infra-utils");

const string = "adsf, asdf fd";
const newString = replaceWords(string, "?");

console.log(newString) // "? ? ?";
1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago