We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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'