VMware {code} Community
harshstar121
Contributor
Contributor

Using class functions for Array in VRO

Hi All,

Can someone help me to write the correct code in vRO by using inbuilt functions of Arrays.?

Ex..

var list = [{ name: "John", age: 36 }, { name: "Jack", age: 17 }];
var foundHim = list.find(person > person.name === "John");
System.log(foundHim);

When I run the workflow it gives me this error

harshstar121_0-1615906409784.png

 

Labels (2)
Reply
0 Kudos
0 Replies