Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var task = inputMatches(
sortedData.map(t => {
const project = t.project.title;
return {
title: t.title,
subtitle: `Project: ${project}`,
autocomplete: t.title,
arg: t.title,
variables: {
project: project
}
};
}), 'title');
if (input.length !== 0) {
task.unshift({title: `Create Task: "${input}"`, arg: input});
}
output(task);
});