Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fix JSDoc (#2219)

Sergio Santoro5e1439d13b90
diff --git a/lib/browser/events.js b/lib/browser/events.js
index 31401691..b4342f62 100644
--- a/lib/browser/events.js
+++ b/lib/browser/events.js
@@ -5,7 +5,7 @@
exports.EventEmitter = EventEmitter;
/**
- * Object#hasOwnProperty reference.
+ * Object#toString reference.
*/
var objToString = Object.prototype.toString;
@@ -14,7 +14,7 @@ var objToString = Object.prototype.toString;
*
* @api private
* @param {*} val The value to test.
- * @return {boolean} true if the value is a boolean, otherwise false.
+ * @return {boolean} true if the value is an array, otherwise false.
*/
function isArray(val) {
return objToString.call(val) === '[object Array]';