someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { return someObject.someFunction().then(function () { anotherFunction(); }); }); }); }); }); }); }); }); }); }); }); }); }); });