This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* * | |
| * This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2). | |
| * Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management, | |
| * session persistence, api calls, and more. | |
| * */ | |
| const Alexa = require('ask-sdk-core'); | |
| function pickRandom(items) { | |
| if (!Array.isArray(items) || items.length === 0) { | |
| return null; |