Details
-
Bug
-
Status: Closed
-
Trivial - P5
-
Resolution: Fixed
-
3.1.2
-
Fully Compatible
-
ALL
-
Platform 3 05/15/15
Description
There are two Array.isArray polyfills that I believe can be safely removed or replaced by plain Array.isArray calls:
src/mongo/shell/mongo.js (introduced by SERVER-18198):
var isArray = function(maybeArray) {
|
return Object.prototype.toString.call(maybeArray) === '[object Array]';
|
};
|
src/mongo/shell/types.js:
if (typeof Array.isArray != "function"){
|
Array.isArray = function(arr){
|
return arr != undefined && arr.constructor == Array
|
}
|
}
|
Attachments
Issue Links
- is related to
-
SERVER-18198 runCommand in the shell should use native runCommand on DBClient
-
- Closed
-