Arrow functions, filter, map & reduce! ThingWorx 8.5 supports ES6 functional programming
I'm getting up to speed on all the great new stuff in 8.5, and have found that since the JavaScript engine was upgraded to Rhino 1.7.11, there's some awesome new JavaScript ES6 functionality available. I have tested arrow functions, filter, map, and reduce. Compose does not look like it is supported.
If you're not familiar with this functionality, I highly recommend reading up on them. Filter, map, and reduce are incredibly useful for working with arrays. They can save you a lot of annoying logic.
Here's some resources that I've found helpful for learning:
- JavaScript Functional Programming - map, filter and reduce
- Arrow Functions: Fat and Concise Syntax in Javascript
If you really want to dive into ES6, Wes Bos has incredible tutorial sessions that are worth every penny:
- Wes Bos: ES6 for Everyone!
Have you played around with ES6 functionality in ThingWorx 8.5 yet?

