Hmm, ok but why not
function asyncParse(string) { return new Promise(function(res, rej) { resolve(JSON.parse(string)); }); }
- or -
let asyncParse = async (string) => JSON.parse(string);
function asyncParse(string) { return new Promise(function(res, rej) { resolve(JSON.parse(string)); }); }
- or -
let asyncParse = async (string) => JSON.parse(string);