Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const keys = entities.map(entity => {
return entity[datastore.KEY];
});const questions = results.map(item => {
item.id = item[Datastore.KEY].id;
if (redact) {
delete item.correctAnswer;
}
return item;
});
return {const questions = results.map(item => {
item.id = item[Datastore.KEY].id;
if (redact) {
delete item.correctAnswer;
}
return item;
});
return {function fromDatastore(obj) {
obj.id = obj[datastore.KEY].id;
return obj;
}