Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var original = {
- email: {
- 0: 'user01@gmail.com',
- 1: 'user02@gmail.com',
- 2: 'user03@gmail.com'
- },
- name: {
- 0: 'Sam',
- 1: 'Jack',
- 2: 'Lucy'
- },
- last_name: {
- 0: 'Smith',
- 1: 'Green',
- 2: 'Tompson'
- }
- };
- var expected = [
- {
- email: 'user01@gmail.com',
- name: 'Sam',
- last_name: 'Smith'
- },
- {
- email: 'user02@gmail.com',
- name: 'Jack',
- last_name: 'Green'
- },
- {
- email: 'user03@gmail.com',
- name: 'Lucy',
- last_name: 'Tompson'
- }
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement