We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Replace suffix match in string with specified value.
const replaceSuffix = require('@extra-string/replace-suffix'); // replaceSuffix(<string>, <suffix>, <replaced value>) replaceSuffix('tinman', 'man', 'woman'); // 'tinwoman' replaceSuffix('muscleman', 'cle', 'cled'); // 'muscleman' replaceSuffix('laughed', 'ed', ''); // 'laugh'