mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-01-12 12:34:39 +00:00
9 lines
249 B
JavaScript
9 lines
249 B
JavaScript
export const fieldGenerator = self => (column, name) => {
|
|
Object.defineProperty(self, name || column, {
|
|
get() { return self._getRaw(column) },
|
|
set(value) { self._setRaw(column, value) },
|
|
enumerable: true,
|
|
configurable: true
|
|
})
|
|
}
|