aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/object/valid-value.js
blob: d0ced8a4715ec7fdcaff117b3ae17a35b0de670f (plain)
1
2
3
4
5
6
7
8
"use strict";

var isValue = require("./is-value");

module.exports = function (value) {
	if (!isValue(value)) throw new TypeError("Cannot use null or undefined");
	return value;
};