Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing back only changed items
Message
From
17/12/2015 14:07:47
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01629068
Message ID:
01629070
Views:
58
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
> I've added a new property (not mapped) to my class called Updated. In JavaScript code I'm setting this property to true when I update the info. So, I'd like to pass the list back but instead of passing the whole array back in API call I'd rather only pass the subset of that array which has updated = true.
>
>So, the question is - how to get a new array from the original array in JavaScript to pass back to API?
>
>Thanks in advance.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform