source: trip-planner-front/node_modules/istanbul-lib-coverage/lib/data-properties.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 283 bytes
RevLine 
[6a3a178]1'use strict';
2
3module.exports = function dataProperties(klass, properties) {
4 properties.forEach(p => {
5 Object.defineProperty(klass.prototype, p, {
6 enumerable: true,
7 get() {
8 return this.data[p];
9 }
10 });
11 });
12};
Note: See TracBrowser for help on using the repository browser.