diff --git a/src/utils/helper.ts b/src/utils/helper.ts index 8e79ae9a0..ae8cbb45c 100644 --- a/src/utils/helper.ts +++ b/src/utils/helper.ts @@ -1,5 +1,5 @@ // `undefined` can possibly be replaced by something else. -export const UNDEFINED: undefined = ({} as any)[0] +export const UNDEFINED = void 0 export const isUndefined = (v: any): v is undefined => v === UNDEFINED export const isFunction = (v: any): v is Function => typeof v === 'function' export const noop = () => {}