Checks if path is a direct property of object.
This function checks whether the specified property exists directly on the object (not inherited from its prototype chain).
The object to query.
The path to check.
Returns true if path exists, else false.
import { has } from './AcCmLodashUtils'const object = { a: 1, b: 2 }has(object, 'a') // truehas(object, 'c') // falsehas(object, 'toString') // false (inherited property) Copy
import { has } from './AcCmLodashUtils'const object = { a: 1, b: 2 }has(object, 'a') // truehas(object, 'c') // falsehas(object, 'toString') // false (inherited property)
Checks if path is a direct property of object.
This function checks whether the specified property exists directly on the object (not inherited from its prototype chain).