
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
objectify-array
Advanced tools
Recursively convert arrays of objects into a single keyed object tree
npm install objectify-array --save
or
yarn add objectify-array
const objectifyArray = require('objectify-array')
var people = [
{id: 'bob', fullName: 'Bob Bobberson'},
{id: 'sue', fullName: 'Sue Zinn'},
{id: 'hal', fullName: 'Hal Itosis'}
]
var tree = objectifyArray(people)
This will return an object, using the id property values as keys:
{
bob: { id: 'bob', fullName: 'Bob Bobberson' },
sue: { id: 'sue', fullName: 'Sue Zinn' },
hal: { id: 'hal', fullName: 'Hal Itosis'}
}
id and name are supported by default. If you want to use another property,
specify it as an optional second argument:
var tree = objectifyArray(people, 'myCustomKeyName')
If your array contains nested arrays of objects, those are objectified too! For more extensive usage examples, see test.js
The module exports a single function:
objectifyArray(array[, keyName])array ArraykeyName String (optional) - A property other than id or name to use for the object keys.npm i && npm t
None
MIT
FAQs
Recursively convert arrays of objects into a single keyed object tree
The npm package objectify-array receives a total of 1 weekly downloads. As such, objectify-array popularity was classified as not popular.
We found that objectify-array demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.