javascriptã§objectããå¤ã®é åã«å¤æãã
ãªãã¸ã§ã¯ãããé åã¸å¤æããæ¹æ³ããªããªãè¦ã¤ãããªãã¦å°ã£ãã
javascriptã§objectããå¤ã®é åã«å¤æãããã®ã§ãkeyãæ°åã®ãã®ã¯å¤ããããã·ã¥ã®ãã®ãæå¤ã¨è¦ã¤ãããªãã£ãã®ã§å°ã£ãã
phpã§ã¯ããã·ã¥ã¯é åã¨ä¸ç·ãªã®ã§array_valuesã§ä¸çºãObjectããé åã¸ã®å¤æãªãã¦å¿ è¦ãªãã
ãã£ã±ããããæ¹ããããããããä¸ã®ããæ¹ãä¸çªã¹ãã¼ãã ã£ãã
var obj = {1: 11, 2: 22}; var arr = Object.keys(obj).map(function (key) {return obj[key]}); Object.keys(obj).map(key => obj[key]) var arr = Object.values(obj); var arr = _.values(obj)