MCPcopy
hub / github.com/nadbm/react-datasheet / _inherits

Function _inherits

lib/DataSheet.js:53–53  ·  view source on GitHub ↗
(subClass, superClass)

Source from the content-addressed store, hash-verified

51function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
52
53function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
54
55var isEmpty = function isEmpty(obj) {
56 return Object.keys(obj).length === 0;

Callers 1

DataSheet.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected