Skip to main content
Module

x/sparkpost/deps.ts>isPlainObject

Send emails from deno via the SparkPost API
Latest
function isPlainObject
import { isPlainObject } from "https://deno.land/x/sparkpost@0.1.1/deps.ts";

Checks if value is a plain object, that is, an object created by the Object constructor or one with a [[Prototype]] of null.

Examples

function Foo() { this.a = 1; }

_.isPlainObject(new Foo); // => false

_.isPlainObject([1, 2, 3]); // => false

_.isPlainObject({ 'x': 0, 'y': 0 }); // => true

_.isPlainObject(Object.create(null)); // => true

Parameters

value

The value to check.