Join Slack
Powered by
No, just looking for the first non-null field. I c...
# suitescript
d
dcrsmith
12/06/2019, 6:15 PM
No, just looking for the first non-null field. I can loop but thought I'd try this and it didn't work
s
stalbert
12/06/2019, 6:34 PM
_.find(record.somesublist, f=> f.fieldname)
would return the first line with a truthy value for
fieldname
stalbert
12/06/2019, 6:34 PM
(though here
record.somesublist
is NFT or similar)
3
Views
Open in Slack
Previous
Next