use foreach instead of map

This commit is contained in:
GotPPay
2018-01-23 12:15:04 +01:00
parent cc579133c0
commit dc2c8f384e

View File

@@ -34,7 +34,7 @@ module.exports = {
destinationEmail = activeSkill.contactEmail; destinationEmail = activeSkill.contactEmail;
let listOfPossibleQuestions = ''; let listOfPossibleQuestions = '';
activeSkill.intents.map (intent => { activeSkill.intents.forEach(intent => {
if (intent.questions.length > 0 && intent.intentExplanation) { if (intent.questions.length > 0 && intent.intentExplanation) {
listOfPossibleQuestions += listOfPossibleQuestions +=
intent.intentExplanation + intent.intentExplanation +
@@ -45,6 +45,8 @@ module.exports = {
} }
}); });
console.log(listOfPossibleQuestions);
//Handler for launch requestconsole.log() //Handler for launch requestconsole.log()
handlers = { handlers = {
LaunchRequest: function () { LaunchRequest: function () {