New answers tagged

0 votes

How to filter by custom object field?

It looks like you want to dynamically describe the picklist field options for the Status__c field on Position__c object. The logic you have is not the correct way to describe options for the picklist ...
user avatar
  • 1,005
1 vote

how to convert a list to list of lists in Javascript

For normal browsers, you probably want Array.prototype.reduce. let group = (values) => Object.values( // Convert { a: b } to just [b] values.reduce( (p, v) => ( // p = previous value, v = ...
user avatar
  • 438k
2 votes

how to convert a list to list of lists in Javascript

There are many ways to do this, including the experimental (generally unsupported) group() method. One simple solution is to use reduce(), something like this, to iterate over the array and construct ...
user avatar
  • 87.3k

Top 50 recent answers are included