NodeJS中的数组解析 [英] Array comprehensions in NodeJS

查看:165
本文介绍了NodeJS中的数组解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说Node.JS有很多EcmaScript 6功能的地方。似乎数组的理解不在默认情况下。



Node.JS是否有数组解释?如果是这样,我该怎么启用它们?

解决方案

我不认为V8(NodeJS使用的JavaScript引擎)支持数组至少不符合此问题报告的要求。 V8项目成员似乎在说,直到它们实际上是标准化的,它们不是一个优先事项。


I heard somewhere that Node.JS has a lot of EcmaScript 6 features. It seems that array comprehensions are not there by default.

Does Node.JS have array comprehensions? If so, how can I enable them?

解决方案

I don't think V8 (the JavaScript engine used by NodeJS) supports array comprehensions yet, at least not according to this issue report. The V8 project member there seems to be saying that until they're actually standardized, they're not a priority.

这篇关于NodeJS中的数组解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆