has
Determine if path is a property of given object. Method is an alias for Lodash hasIn
.
See also isset()
.
import { has } from "@aedart/support/objects";
const target = {
a: 1234,
b: {
c: {
age: 24
}
},
};
let result = has(target, 'b.c.age');
console.log(result); // true