Checks if key is a direct property of object.
key
object
0.1.0
hasIn, hasPath, hasPathIn
const object = { 'a': { 'b': 2 } }const other = create({ 'a': create({ 'b': 2 }) })has(object, 'a')// => truehas(other, 'a')// => false Copy
const object = { 'a': { 'b': 2 } }const other = create({ 'a': create({ 'b': 2 }) })has(object, 'a')// => truehas(other, 'a')// => false
Checks if
key
is a direct property ofobject
.