UNPKG

qtsd-fork

Version:

Do not use this please

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; };