Search

10/04/2013

coffeescript destructuring assignment

coffeescript destructuring assignment

{access_token, since, username} = doc
compiles to
var access_token, since, username;
access_token = doc.access_token, since = doc.since, username = doc.username;

沒有留言: