var promise = Promise.resolve();
var result = []
for(let i =0; i< 3;i++){
promise = promise.then(()=> $.ajax(
{
url: urlToCreated + '/' + id,
type: 'GET',
dataType: 'json',
data: {skip: skip, limit: 100000},
}
).promise().then(function (data) {
result.push(data)
}))
}