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

array-prototype-functions

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-prototype-functions - npm Package Compare versions

Comparing version 2.7.2 to 2.8.0

2

package.json
{
"name": "array-prototype-functions",
"version": "2.7.2",
"version": "2.8.0",
"description": "Array prototype augmentation for easier arithmetics and overall pleasure!",

@@ -5,0 +5,0 @@ "scripts": {

@@ -1,2 +0,1 @@

import { Comparable, MapperFunc } from './sort-by';
declare global {

@@ -15,4 +14,5 @@ interface Array<T> {

*/
uniq<O extends Comparable>(mapper: MapperFunc<T, O>): O[];
uniq<O>(mapper: (item: T) => O): O[];
}
}
export {};

@@ -8,3 +8,3 @@ if (Array.prototype.uniq === undefined) {

else {
return fieldOrMapper ? item[fieldOrMapper] : item;
return fieldOrMapper !== null ? item[fieldOrMapper] : item;
}

@@ -11,0 +11,0 @@ }))];

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