dist/bbn.js
/**
     * Looks for and replaces parts of string with what we want.
     *
     * With the first argument you define what to replace,
     * the second argument with what you have to replace instead and the third argument is the string to be replaced.
     *
     * @method   replaceAll
     * @global
     *
     * @example
     * ```javascript
     * bbn.fn.replaceAll('day', 'night', 'Today is a beautiful day');
     * //"Tonight is a beautiful night"
     * ```
     * @memberof bbn.fn
     * @param    {String} find
     * @param    {String} replace
     * @param    {String|RegExp} str
     * @param    {String} flags
     * @returns  {String}
     */
Looks for and replaces parts of string with what we want.
With the first argument you define what to replace,
the second argument with what you have to replace instead and the third argument is the string to be replaced.

@method   replaceAll
@global


Looks for and replaces parts of string with what we want . With the first argument you define what to replace the second argument with what you have to replace instead and the third argument is the string to be replaced . @method replaceAll @global
replaceAll(find, replace, str, flags = ''){
      if ( str !== undefined ){
        return str.toString().replace(bbn.fn.isObject(find) ? find : new RegExp(bbn.fn.escapeRegExp(find), 'g' + flags), replace);
      }
      return false;
    }
replaceAll ( find , replace , str , flags = '' ) { if ( str !== undefined ) { return str . toString ( ) . replace ( bbn . fn . isObject ( find ) ? find : new RegExp ( bbn . fn . escapeRegExp ( find ) , 'g' + flags ) , replace ) ; } return false ; }
Looks for and replaces parts of string with what we want.
Looks for and replaces parts of string with what we want .