my-idlers/node_modules/collect.js/dist/methods/macro.js

5 lines
102 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function macro(name, fn) {
this.constructor.prototype[name] = fn;
};