'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = cleanChar;


/**
 * clean the first occurrence of (`char`) from a string (`str`)
 * @name cleanChar
 * @param {string} str string to mainpulate.
 * @param {string} char char to clean.
 * @returns {string} cleaned string.
 * ```js
 *  cleanChar('foo', 'f') // => 'oo'
 * ```
 */
function cleanChar(str, char) {
  return str.replace(char, '');
}