cibernox / cibernox/ember-cpm

hash() translate?

Open
#131 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.