-
Type: Bug
-
Resolution: Done
-
Priority: Trivial - P5
-
Affects Version/s: 3.1.2
-
Component/s: JavaScript, Shell
-
Fully Compatible
-
ALL
-
Platform 3 05/15/15
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 } }
- is related to
-
SERVER-18198 runCommand in the shell should use native runCommand on DBClient
- Closed