Article - CS308676

Is it possible to use arrow function in custom service in ThingWorx

Modified: 19-Jun-2019   


Applies To

  • ThingWorx Platform 8.4

Description

  • If using arrow function in the custom service, it can not be saved by the following error
arrow function syntax (=>) is only available in ES (use 'esversion: ')"
  • Arrow function example
var array1 = [1, 4, 9, 16]; var map1 = array1.map(x => x * 2);
  • Is it possible to use arrow function in custom service
This is a printer-friendly version of Article 308676 and may be out of date. For the latest version click CS308676