15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
/**
|
|
* 检查键、路径是否是该对象的属性
|
|
* @param obj 对象
|
|
* @param property 键、路径
|
|
*/
|
|
export declare function has(obj: any, property: undefined | null | number | number[] | string | string[]): boolean;
|
|
|
|
declare module './ctor' {
|
|
interface XEUtilsMethods {
|
|
has: typeof has;
|
|
}
|
|
}
|
|
|
|
export default has
|