UNPKG
d3-jsnext
Version:
latest (3.5.5)
3.5.5
d3, but futuristic
github.com/rollup/d3-jsnext
rollup/d3-jsnext
d3-jsnext
/
src
/
core
/
class.js
10 lines
(9 loc)
•
208 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
function
d3_class
(
ctor, properties
) {
for
(
var
key
in
properties) {
Object
.
defineProperty
(ctor.
prototype
, key, {
value
: properties[key],
enumerable
:
false
}); } }
export
{ d3_class };