mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Apply even more let/const transforms.
This commit is contained in:
@@ -20,8 +20,8 @@ import toString from './toString.js';
|
||||
* // => 'Hi Barney'
|
||||
*/
|
||||
function replace() {
|
||||
var args = arguments,
|
||||
string = toString(args[0]);
|
||||
const args = arguments;
|
||||
const string = toString(args[0]);
|
||||
|
||||
return args.length < 3 ? string : string.replace(args[1], args[2]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user