mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
15 lines
311 B
JavaScript
15 lines
311 B
JavaScript
|
"use strict";
|
||
|
|
||
|
var value = require("./valid-value")
|
||
|
, objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
||
|
|
||
|
module.exports = function (obj) {
|
||
|
var i;
|
||
|
value(obj);
|
||
|
for (i in obj) {
|
||
|
// Jslint: ignore
|
||
|
if (objPropertyIsEnumerable.call(obj, i)) return false;
|
||
|
}
|
||
|
return true;
|
||
|
};
|