ht_hooks
Version:
ht React 业务 Hooks
10 lines • 390 B
JavaScript
import { debounce } from 'lodash-es';
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 };