ES2015 Promise polyfill by pinkie with globally assignment.
npm install req-json --save
ES modules for Webpack 2+ or Rollup
import 'pinkie-polyfill';
CommonJS for Webpack 1 or Browserify
require('pinkie-polyfill');
Direct <script>
include
<script src="https://cdn.jsdelivr.net/npm/pinkie-polyfill"></script>
A Promise is an object representing the eventual completion or failure of an asynchronous operation. See full documents.