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

@@ -1,7 +1,7 @@
import toInteger from './toInteger.js';
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
const FUNC_ERROR_TEXT = 'Expected a function';
/**
* Creates a function that invokes `func`, with the `this` binding and arguments
@@ -21,7 +21,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* // => Allows adding up to 4 contacts to the list.
*/
function before(n, func) {
var result;
let result;
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}