ahooks
Version:
react hooks library
14 lines • 468 B
JavaScript
import debounce from 'lodash/debounce';
function isNodeOrWeb() {
var freeGlobal = (typeof global === 'undefined' ? 'undefined' : typeof global) == 'object' &&
global &&
global.Object === Object &&
global;
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
return freeGlobal || freeSelf;
}
if (!isNodeOrWeb()) {
global.Date = Date;
}
export { debounce };
//# sourceMappingURL=lodash-polyfill.js.map