Created
February 28, 2020 13:31
-
-
Save doug1n/0306b545a3aa9a442da7ba8347501bce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ds = DatasetFactory.getDataset('workflowProcess', null, null, null); | |
const outObject = ds.values.reduce(function(a, e) { | |
let estKey = (e['processId']); | |
(a[estKey] ? a[estKey] : (a[estKey] = null || [])).push(e); | |
return a; | |
}, {}); | |
console.log(outObject); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment