]> gerrit.simantics Code Review - simantics/district.git/blob - valid-object.js
f82bd51ed106f2f53deeab9b6b091307ee7a2f8b
[simantics/district.git] / valid-object.js
1 'use strict';
2
3 var isObject = require('./is-object');
4
5 module.exports = function (value) {
6         if (!isObject(value)) throw new TypeError(value + " is not an Object");
7         return value;
8 };