MongoDB Documentation, Release 3.0.4 With V8, use the String instance methods instead of following generic methods: Array Generic Methods V8 does not support Array generic methods$^{813}$. Array generics are a set of methods on the Array class that mirror instance methods. The following use of the generic method Array.every() is invalid with V8: Example var arr = [4, 8, 15, 16, 23, 42]; function isEven (val) { return 0 === val % 2; } var allEven = Array.every(arr, isEven); print(allEven); var allEven = arr.every(isEven); print(allEven); With V8, use the Array instance method every() available through an instance of the Array class instead: With V8, use the Array instance methods instead of the following generic methods: Array Instance Method toSource() V8 does not support the Array instance method toSource()$^{814}$. Use the Array instance method toString() instead. uneval() V8 does not support the non-standard method uneval() . Use the standardized JSON.stringify() 815 method instead. Change default JavaScript engine from SpiderMonkey to V8. The change provides improved concurrency for JavaScript operations, modernized JavaScript implementation, and the removal of non-standard SpiderMonkey fea- tures, and affects all JavaScript behavior including the commands mapReduce , group , and eval and the query operator $where . $^{813}$https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array#Array_generic_methods $^{814}$https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/toSource $^{815}$https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/JSON/stringify Chapter 12. Release Notes 890 String.charAt() String.quote() String.toLocaleLowerCase() String.charCodeAt() String.replace() String.toLocaleUpperCase() String.concat() String.search() String.toLowerCase() String.endsWith() String.slice() String.toUpperCase() String.indexOf() String.split() String.trim() String.lastIndexOf() String.startsWith() String.trimLeft() String.localeCompare() String.substr() String.trimRight() String.match() String.substring() Array.concat() Array.lastIndexOf() Array.slice() Array.every() Array.map() Array.some() Array.filter() Array.pop() Array.sort() Array.forEach() Array.push() Array.splice() Array.indexOf() Array.reverse() Array.unshift() Array.join() Array.shift()