What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-05 11:20:07
Intersection of two deep objects in JavaScript
const company = { lastYearRevenue: 4444, capacityInstalled: 22, ppaDemands: [ 'f6202f82501ee7350cc73fd', '5f6211ef0b5983761f4d0bb8' ], activeProjects: [ '5f6204162501ee7350cc7406', 'f6207462501ee7350cc7408', '5f62411e21a6... Add solution -
Javascript 2021-10-26 11:08:16
turn object's properties into array of objects js
let data = { '1536135941922': 'true', '1536135962942': 'false', '1536135986966': 'false', '1536135989968': 'true' }; let result = Object.entries(data).map(( [k, v] ) => ({ [k]: v })); console.log(result); Add solution