I'm attempting to use Object.values()
in one of my Firebase Cloud Functions, but it isn't recognized as a function. I assume this means that es7 functions aren't available on Firebase Cloud Functions. My question is two-fold:
First, is this true? Second, I recognize that the function isn't supported by some browsers, but I wonder if that's important for Firebase Cloud Functions. Can anyone explain this to me?
According to node.green, Firebase only supports the LTS version of Node which is currently at the version 6.10.x and Object.values
is still behind experimental flag in Node 6.10.x.
Hope this cleared your doubt!
Ran into the same issue. check out this answer that recommends using the Object.keys
function and chaining it to the built in map
function that comes with the array prototype.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With