Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(actions || []).forEach((a) => {
if (typeof a === 'object') {
list.push(a);
}
else {
list.push({ type: botframework_schema_1.ActionTypes.ImBack, value: a.toString(), title: a.toString() });
}
});
return list;