2.2.0 • Published 3 years ago
jsmp-infra-hotsak-remove-word v2.2.0
Introduction to package managers
This package helps to remove unnecessary word from the string.
Installing
$ npm install jsmp-infra-mykyta-hotsak-remove-word
How to use
To use this function import this like that:
const removeWord = require('jsmp-infra-mykyta-hotsak-remove-word');
removeWord(string, word)
string
- The string, which you want to delete a word;word
- the word, which you want to remove;
Tests
Run "npm run test:unit" or "yarn test:unit" to check if everything works as expected.
Usage
removeWord('Hello world', 'world'); // 'Hello'