4 ms·
It would be trivial to convert the callback-based method to a promises one in whichever library you're using. For instance, with bluebird[0]: d3.json = re
by couchand 11y ago
It would be trivial to convert the callback-based method to a promises one in whichever library you're using. For instance, with bluebird[0]:
d3.json = require('bluebird').promisify(d3.json);
[0]: https://github.com/petkaantonov/bluebird https://github.com/petkaantonov/bluebird