UNPKG

d2-ui

Version:
1 lines 773 B
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkClassStructure=void 0;var _lodash=require("lodash"),_lodash2=_interopRequireDefault(_lodash),checkClassStructure=exports.checkClassStructure=function(e){_lodash2["default"].map(e,function(t,s){e.hasOwnProperty(s)&&(_lodash2["default"].isObject(t)?_lodash2["default"].map(t,function(e,a){t.hasOwnProperty(a)&&(_lodash2["default"].isObject(e)||console.warn("Make sure the value of the element `"+s+"`\n is an object of css. You passed it `"+t+"`"))}):console.warn("Make sure the value of `"+s+"` is an object of\n html elements. You passed it `"+t+"`"))})};exports["default"]=checkClassStructure;