☕️ Classic, reliable, trusted test framework for Node.js and the browser
styling
TJ Holowaychuk2963de070c89
diff --git a/lib/utils.js b/lib/utils.jsindex c9942c38..0df5b272 100644--- a/lib/utils.js+++ b/lib/utils.js@@ -22,7 +22,7 @@ var ignore = ['node_modules', '.git'];* @api private*/-exports.escape = function(html) {+exports.escape = function(html){return String(html).replace(/&/g, '&').replace(/"/g, '"')@@ -39,7 +39,7 @@ exports.escape = function(html) {* @api private*/-exports.forEach = function(arr, fn, scope) {+exports.forEach = function(arr, fn, scope){for (var i = 0, l = arr.length; i < l; i++)fn.call(scope, arr[i], i);};@@ -53,7 +53,7 @@ exports.forEach = function(arr, fn, scope) {* @api private*/-exports.indexOf = function (arr, obj, start) {+exports.indexOf = function(arr, obj, start){for (var i = start || 0, l = arr.length; i < l; i++) {if (arr[i] === obj)return i;@@ -71,7 +71,7 @@ exports.indexOf = function (arr, obj, start) {* @api private*/-exports.reduce = function(arr, fn, val, scope) {+exports.reduce = function(arr, fn, val, scope){var rval = val;for (var i = 0, l = arr.length; i < l; i++) {@@ -90,7 +90,7 @@ exports.reduce = function(arr, fn, val, scope) {* @api private*/-exports.filter = function(arr, fn, scope) {+exports.filter = function(arr, fn){var ret = [];for (var i = 0, l = arr.length; i < l; i++) {