×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Sillas Leal
Added: Feb 1, 2017 8:34 PM
Views: 12
Tags: javascript
Converte um objeto em array.
  1. var obj = {1: 11, 2: 22};
  2. var arr = Object.keys(obj).map(function (key) { return obj[key]; });