Skip to content

Instantly share code, notes, and snippets.

@amarvin
amarvin / async await ie11.js
Created September 6, 2018 03:54 — forked from DejanBelic/async await ie11.js
How to use async await in ie11
// Async await func
async function getTimelineData() {
var response = await fetch('/some-api-url')
return response.json()
}
async function populateTimelineInit() {
var data = await getTimelineData();
new vis.DataSet(data);