Module

x/lodash_es/src/hasIn.js>default

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

Checks if path is a direct or inherited property of object.

Examples

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

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

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

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

_.hasIn(object, 'b'); // => false

Parameters

object

The object to query.

path

The path to check.