mithril-vndb/util/prop.js
Isiah Meadows 6042b001f0
Add m.prop (#2268)
Fixes #2095
2018-11-07 12:18:55 -05:00

9 lines
188 B
JavaScript

"use strict"
module.exports = function (store) {
return {
get: function() { return store },
toJSON: function() { return store },
set: function(value) { return store = value }
}
}