Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function parseStalkernetResults(data) {
return xml2js
.parseStringAsync(data)
.then(results => results['Results']['Person'])
.then(people => people.map(simplifySingleStalkernetResult))
.then(people => people.filter(removeSillyStalkernetResults))
}
function parseStalkernetResults(data) {
return xml2js
.parseStringAsync(data)
.then(results => results['Results']['Person'])
.then(people => people.map(simplifySingleStalkernetResult))
.then(people => people.filter(removeSillyStalkernetResults))
}