ensure-plain-object.js 266 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 "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; };