Skip to content

@miyue-mma/shared / has

函数: has()

ts
function has(obj, path): boolean

判断对象是否具有指定路径的属性

参数

obj

Record<string, any>

待判断对象

path

属性路径

string | string[]

返回

boolean

Released under the MIT License.