UNPKG

226 BJavaScriptView Raw
1/**
2 * Class decorator. Seals both constructor and prototype.
3 *
4 * @param constructor - class ctor to seal
5 */
6export const sealed = (constructor) => {
7 Object.seal(constructor);
8 Object.seal(constructor.prototype);
9};