UNPKG

@yamamotok/dataobject

Version:

Decorator based JSON serializer and deserializer.

14 lines 427 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasToPlain = void 0; function hasToPlain(ctor) { if (typeof ctor !== 'function') { return false; } if (!Object.prototype.hasOwnProperty.call(ctor, 'toPlain')) { return false; } return typeof ctor.toPlain === 'function'; } exports.hasToPlain = hasToPlain; //# sourceMappingURL=hasToPlain.js.map