☰
Debian Codegraph
@
0.4.5+repack10+~cs98.25.59-13
0.4.5+repack10+~cs98.25.59-11
/
/
istanbul-lib-coverage
/
lib
/
data-properties.js
☽
☼
istanbul-lib-coverage/lib/data-properties.js
code
plain
raw
BSD-3-Clause
2012-2018 Yahoo! Inc.
debian/copyright
1
'use strict';
2
3
module.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
};