led-canvas-led
Version:
Example LED class to be used by https://github.com/marionebl/led-canvas
20 lines (15 loc) • 297 B
JavaScript
var Store = require('./store');
class Styles extends Store {
constructor (initial) {
super(initial);
}
factory (initial) {
return new Styles(initial);
}
forEach (callback) {
Object.keys(this._).forEach((key) => {
callback(key, this.get(key));
});
}
}
module.exports = Styles;