Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const nodeIds = results.map(function(result) {
return (result.statusCode === StatusCodes.Good) ? result.targets[0].targetId : NodeId.NullId;
});