javascript - Any idea why this happens in coffeescript -
i have below code in coffeescript after run these lines value of str still "d41d8cd98f00b204". thoughts on doing wrong?
datadict = {email: "johndoe@gmail.com", t:213213.213213} apifields = ['email', 'password', 'backup_email', 'firstname', 'lastname', 'dob', 'username', 'position', 'industry', 'institution', 'verificationcode', 'confirmcode', 'signuphost', 'responses', 't'] str = "d41d8cd98f00b204" ind in apifields str = str + datadict[ind] if ind in datadict console.log(str)
i'd do:
append = datadict[ind] str = str + append if append what compiles to:
if (__indexof.call(datadict, ind) >= 0) str = str + datadict[ind]; where
__indexof === [].indexof //array.prototype's indexof , , array.prototype's indexof doesn't work on non-array objects.
Comments
Post a Comment