Apply even more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-09 12:23:34 -08:00
parent e6152a97e8
commit dc687c1d85
177 changed files with 433 additions and 437 deletions

View File

@@ -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]);
}