UNPKG

hummus-recipe

Version:

A powerful PDF tool for NodeJS based on HummusJS

10 lines (7 loc) 266 B
"use strict"; var safeToString = require("../safe-to-string") , isPlainObject = require("./is-plain-object"); module.exports = function (value) { if (!isPlainObject(value)) throw new TypeError(safeToString(value) + " is not a plain object"); return value; };