import { has } from "https://deno.land/x/sparkpost@0.1.1/deps.ts";
Checks if path
is a direct property of object
.
Examples
var object = { 'a': { 'b': 2 } };
var other = _.create({ 'a': _.create({ 'b': 2 }) });
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