We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Replace prefix match in string with specified value.
const replacePrefix = require('@extra-string/replace-prefix'); // replacePrefix(<string>, <prefix>, <replaced value>) replacePrefix('tinman', 'tin', 'gun'); // 'gunman' replacePrefix('muscleman', 'cle', 'cled'); // 'muscleman' (not prefix) replacePrefix('-1.6022e-19', '-', ''); // '1.6022e-19'