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 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'