Module

x/lodash_es/src/has.js>default

lodash for deno use
Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/has.js";

Checks if path is a direct property of object.

Examples

var object = { 'a': { 'b': 2 } }; var other = _.create({ 'a': _.create({ 'b': 2 }) });

_.has(object, 'a'); // => true

_.has(object, 'a.b'); // => true

_.has(object, ['a', 'b']); // => true

_.has(other, 'a'); // => false

Parameters

object

The object to query.

path

The path to check.