Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/sparkpost/deps.ts>has

Send emails from deno via the SparkPost API
Latest
function has
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 }) });

_.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.