UNPKG

react-antd-admin-panel

Version:

Easy prototyping admin panel using React and Antd

16 lines 434 B
export default class User { constructor(r) { if (!r) return; this.object(r); let ignore = Object.keys(this); Object.keys(r).forEach(k => { if (!ignore.includes(k) || k[0] === '_') { // @ts-ignore this[k] = r[k]; } }); } object(v) { this._object = v; return this; } } //# sourceMappingURL=User.js.map