How to use the stampit.methods function in stampit

To help you get started, we’ve selected a few stampit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github matteodelabre / midijs / lib / files / file.js View on Github external
track() {
        const track = Track(), that = this;
        const wrappedTrack = Track.compose(stampit.methods({
            end() {
                track.end();
                return that;
            }
        }))(track);

        this.tracks.push(track);
        return wrappedTrack;
    }
});

stampit

Create objects from reusable, composable behaviors.

MIT
Latest version published 4 years ago

Package Health Score

69 / 100
Full package analysis