extract value from array of objects javascript
let result = objArray.map(a => a.foo);
extract value from array of objects javascript
let result = objArray.map(a => a.foo);
javascript extract array from object
var obj = {v1: 'v1', v2: 'v2'};
// extract object's values as array
var valuesArray = Object.values(obj); // ['v1','v2']
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us