jQuery.replaceClass
Remove one or more classes that match a string or regular expression and optionally add a class. Usefull when you need to swap out classes the have the same prefix like $('#el').replaceClass(/^animate-/, 'animate-out');
.
Install
npm install jquery-replace-class
Usage
// inject jQuery so it can add the replaceClass function to jQuery.fnjQuery;;;// Or just remove any class starting with 'f';