Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
source: async (answers, input) => {
input = input || '';
var data = ISO6391.getAllNames();
var results = data.filter(language =>
language.toLowerCase().startsWith(input.toLowerCase())
);
return results;
},
};