5 lines
102 B
JavaScript
5 lines
102 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function macro(name, fn) {
|
||
|
this.constructor.prototype[name] = fn;
|
||
|
};
|