New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

helprjs

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helprjs - npm Package Compare versions

Comparing version 1.0.62 to 1.0.63

ts/mergeArraysRemoveDuplicates.ts

2

package.json
{
"name": "helprjs",
"version": "1.0.62",
"version": "1.0.63",
"description": "Helprjs is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -45,2 +45,15 @@ # helprjs

#### mergeArraysRemoveDuplicates - [Demo](https://codesandbox.io/p/sandbox/mergearraysremoveduplicates-zfv52x?file=%2Fsrc%2FApp.js)
```
merges two arrays and removes all duplicates
Useage:
const array1 = [{ id: 1, name: 'Alice' }, { id: 2, name: 'Bob' }];
const array2 = [{ id: 2, name: 'Bob' }, { id: 3, name: 'Charlie' }];
const mergedArray = mergeArraysRemoveDuplicates(array1, array2);
console.log(mergedArray);
```
#### deGroup - [Demo](https://codesandbox.io/s/groupbyid-lv5mp?file=/src/App.js)

@@ -47,0 +60,0 @@ ```

@@ -8,2 +8,3 @@ // Useage: arrayToObject(["Mike","Jones",34,true])

// Returns {firstName: 'Mike', lastName: 'Jones', age: 34, registered: true}
export const arrayToObject = ( values: [], keys: [] ) => {

@@ -10,0 +11,0 @@ const obj: any = {};

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc