erictgrubaugh
10/17/2019, 11:05 PMconst sublistFields = [
{
id: "custpage_blah1",
type: serverWidget.Type.WHATEVER,
label: "Blah"
},
...
];
const sublistIds = sublistFields.map((f) => { return f.id; });
...
sublistFields.forEach((f) => { sublist.addField(f); });
...
for (i : 0 => lineCount) {
var rowValues = sublistIds.map((id) => { return request.getSublistValue({sublistId: "blah", fieldId: id, line: i});
...
}
```stalbert
10/18/2019, 4:10 PMerictgrubaugh
10/18/2019, 4:39 PMerictgrubaugh
10/18/2019, 4:39 PMerictgrubaugh
10/18/2019, 4:39 PMstalbert
10/18/2019, 5:51 PMreturn
keyword. So a lambda like () => 5
is equivalent to () => { return 5 }
. IMHO that reads more cleanly and it's more 'functional' in the sense that it is treating ()=> 5
alike an expression that gets evaluated for to a value (5). I like this as it's akin to Scala which is an 'expression oriented' language https://en.wikipedia.org/wiki/Expression-oriented_programming_language