Message from JavaScript talks

June 2017

— Is it possible with $.map ?

— 

Easier method

 var arr = [];

    for (elem in obj) {

       arr.push(elem + ":" + obj[elem]);

    }


where obj is your JS Object

— Erm,

— Wait gonna write it manually

— Or this

var arr = Object.keys(obj).map(function(i) { return i + ":" + obj[i] });


where obj is your JS object

Message permanent page

— If you want without keys, just remove i + ":" from this

— I see

— I will try it, thanks

— Np :)

— FYI please do not post random links unless they are either relevant to the topic of the group, or are requested by another user. Thank you! :)

Message permanent page

— Hello

— Const isNaN = x => x !== x