mirror of
https://github.com/azure/setup-kubectl.git
synced 2026-12-03 19:51:53 +00:00
7ad2aa66bb
Co-authored-by: tbarnes94 <tbarnes94@users.noreply.github.com>
13 lines
283 B
JavaScript
13 lines
283 B
JavaScript
'use strict';
|
|
|
|
module.exports = function dataProperties(klass, properties) {
|
|
properties.forEach(p => {
|
|
Object.defineProperty(klass.prototype, p, {
|
|
enumerable: true,
|
|
get() {
|
|
return this.data[p];
|
|
}
|
|
});
|
|
});
|
|
};
|