hash() translate?
Open
- Dominant language
- JavaScript
- Stars
- 276
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
Right now `hash()` takes string arguments, and returns a hash of attribute keys -> attribute values.
It's sometimes useful to use different keys than the attribute key of the object. Would you be down for the ability to pass a hash argument instead? Like this:
``` js
Ember.Object.extend({
thingType: 'dog',
thingName: 'Fido',
values: hash({
type: 'thingType',
name: 'thingName'
}) // { type: 'dog', name: 'Fido' }
});
```
Contributor guide
Assessment
This issue has not been assessed yet.