jsmp-infra-luiza-usachova-remove-word
v1.0.0
Published
This package was created for studying purposes
Downloads
4
Maintainers
Readme
Introduction to package managers
This package helps to remove unnecessary word from the string.
Installing
$ npm install jsmp-infra-usachova-remove-word
How to use
To use this function import this like that:
const removeWord = require('jsmp-infra-luiza-usachova-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'