8 lines · 161 B · JavaScript
RawDownload
app.Model = class Model {  constructor(attributes) {    for (var key in attributes) {      var value = attributes[key];      this[key] = value;    }  }};