a.constructor === Array is always falsey when you run showdown within Node's VM API. Related to https://github.com/nodejs/node/issues/7351 Closes #425
@@ -37,7 +37,7 @@ showdown.helper.isFunction = function (a) {
*/
showdown.helper.isArray = function (a) {
'use strict';
- return a.constructor === Array;
+ return Array.isArray(a);
};
/**