component / model

Minimalistic extensible data models
122 stars 40 forks source link

Helper methods for setting arrays / objects #26

Closed matthewmueller closed 11 years ago

matthewmueller commented 11 years ago

I find myself doing this a lot:

var posts = blog.posts()
posts.push({ title : "blah", content : "zzz" })
blog.posts(posts)

Not a huge deal, but I think it'd be nice to have some sort of helper methods for pushing, popping, and setting keys.

tj commented 11 years ago

-1 from me, that's really a doc-db specific thing, getting into that realm at all is super leaky

matthewmueller commented 11 years ago

mmm okay, fair enough

tj commented 11 years ago

(you could expend the prototype with a plugin tho)