Код: Выделить всё
var problem = {
something: {thing:23},
somethingElse: [function(){return this.something.thing}]
};
console.log(problem.somethingElse[0]()); //Gives undefined error
Подробнее здесь: https://stackoverflow.com/questions/793 ... n-an-array
Мобильная версия