fetchJsonp
Resolve JSONP request with a promise.
Usage
import { fetchJsonp } from 'foxact/fetch-jsonp';
const data = await fetchJsonp<T>(
// the `getUrl` function that passes the callback name
(callbackName) => 'https://api.example.com/data?callback=' + callbackName
);