1 2 3 4 5 6 7 8 9 10 11 12 | 1× 1× 32× 32× | import computed from 'ember-computed' export default function toNumberMacro (stringPropertyName, base = 10) { return computed(stringPropertyName, function () { const value = this.get(stringPropertyName) return parseInt(value, base) }) } |