* Replaces matches for `pattern` in `string` with `replacement`. * * **Note:** This method is based on * [`String#replace`](https://mdn.io/String/replace). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The strin
()
| 50084 | * // => 'Hi Barney' |
| 50085 | */ |
| 50086 | function replace() { |
| 50087 | var args = arguments, |
| 50088 | string = toString(args[0]); |
| 50089 | |
| 50090 | return args.length < 3 ? string : string.replace(args[1], args[2]); |
| 50091 | } |
| 50092 | |
| 50093 | /** |
| 50094 | * Converts `string` to |
nothing calls this directly
no test coverage detected