How to use Object.values() on server side in Node.js

前端 未结 7 1256
不思量自难忘°
不思量自难忘° 2020-12-03 00:46

Object.values() received following error:

TypeError: Object.values is not a function.

From this question on stack

相关标签:
7条回答
  • 2020-12-03 01:15

    3 alternative to go around if you don't want to upgrade node

    1. mapping keys as in this answer
    2. using lodash as another answer by @sakovias
    3. using this object.values npm package
    0 讨论(0)
提交回复
热议问题