Navigation

JavaScript Feature Compatibility

MongoDB Realm functions fully support JavaScript ES5 syntax as well as most modern JavaScript features included in EcmaScript 2015 (ES6) and more recent releases. This page outlines Realm's support for a non-exhaustive list of features released in or since EcmaScript 2015.

FeatureSupported
arrow function expressionsYes
classesYes
superYes
generatorsYes
default function parametersYes
rest parametersYes
spread iterablesYes
object literal extensionsYes
for...of loopsYes
for await...of loopsYes
octal and binary literalsYes
template literalsYes
destructuring assignmentYes
new.targetYes
RegExp -y and -u flagsNo
Exponentiation (**)Yes
FeatureSupported
TypedArrayYes
MapYes
SetYes
WeakMapYes
WeakSetNo
ProxyNo
ReflectNo
PromiseYes
SymbolYes
FeatureSupported
Object static methodsYes
String static methodsYes
String.prototype methodsYes
RegExp.prototype propertiesNo
Function.nameYes
Array static methodsNo
Array.prototype methodsYes
Number static methodsNo
Math methodsNo
Give Feedback