UNPKG

ut2

Version:

一个现代 JavaScript 实用工具库。[点击查看在线文档]。

72 lines (71 loc) 3.31 kB
export declare const nativeUndefined: undefined; export declare const stringUndefined = "undefined"; export declare const stringObject = "object"; export declare const objectProto: Object; export declare const objectProtoToString: () => string; export declare const objectProtoHasOwnProperty: (v: PropertyKey) => boolean; export declare const objectProtoPropertyIsEnumerable: (v: PropertyKey) => boolean; export declare const objectGetOwnPropertySymbols: (o: any) => symbol[]; export declare const objectGetPrototypeOf: (o: any) => any; export declare const objectKeys: { (o: object): string[]; (o: {}): string[]; }; export declare const functionProto: Function; export declare const functionProtoToString: () => string; export declare const symbolProto: Symbol | undefined; export declare const arrayProto: any[]; export declare const arrayProtoSlice: (start?: number, end?: number) => any[]; export declare const mathMin: (...values: number[]) => number; export declare const mathMax: (...values: number[]) => number; export declare const mathRandom: () => number; export declare const mathFloor: (x: number) => number; export declare const mathCeil: (x: number) => number; export declare const mathAbs: (x: number) => number; export declare const numberIsFinite: (number: unknown) => boolean; export declare const numberIsInteger: (number: unknown) => boolean; export declare const numberIsSafeInteger: (number: unknown) => boolean; export declare const globalThisExisted: false | typeof globalThis; export declare const globalExisted: false | typeof globalThis; export declare const selfExisted: false | (Window & typeof globalThis); /** * @summary 最大安全整数。 * @since 1.0.0 * @see {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER MAX_SAFE_INTEGER} */ export declare const MAX_SAFE_INTEGER: number; /** * @summary 最小安全整数。 * @since 1.0.0 * @see {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER MIN_SAFE_INTEGER} */ export declare const MIN_SAFE_INTEGER: number; /** * @summary 最大数组长度 `Math.pow(2,32) - 1`。 * @since 1.0.0 * @see {@link https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/length length} */ export declare const MAX_ARRAY_LENGTH = 4294967295; export declare const bigIntTag: string; export declare const numberTag: string; export declare const booleanTag: string; export declare const stringTag: string; export declare const dateTag: string; export declare const regExpTag: string; export declare const symbolTag: string; export declare const errorTag: string; export declare const arrayBufferTag: string; export declare const argumentsTag: string; export declare const arrayTag: string; export declare const functionTags: string[]; export declare const weakSetTag: string; export declare const blobTag: string; export declare const fileTag: string; export declare const domExceptionTag: string; export declare const objectTag: string; export declare const dataViewTag: string; export declare const mapTag: string; export declare const promiseTag: string; export declare const setTag: string; export declare const weakMapTag: string; export declare const windowTag: string;