UNPKG

react-native-web-headroom

Version:
11 lines (7 loc) 289 B
'use strict'; var requirePromise = require('./requirePromise'); var implementation = require('./implementation'); module.exports = function getPolyfill() { requirePromise(); return typeof Promise.prototype['finally'] === 'function' ? Promise.prototype['finally'] : implementation; };