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

@bothrs/util

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bothrs/util - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

sentry-env.mjs

2

package.json
{
"name": "@bothrs/util",
"version": "1.2.0",
"version": "1.3.0",
"description": "Common helper functions",

@@ -5,0 +5,0 @@ "license": "MIT",

// Usage:
// items.filter(uniq)
// items.filter(uniqBy('id'))
// items.filter(uniqBy(item => item.origin + item.path))
function uniq(v, i, a) {
export function uniq(v, i, a) {
return a.findIndex(b => b === v) === i
}
function uniqBy(prop) {
// Usage:
// items.filter(uniqBy('id'))
// items.filter(uniqBy(item => item.origin + item.path))
export function uniqBy(prop) {
return typeof prop === 'function'

@@ -12,0 +12,0 @@ ? (v, i, a) => a.findIndex(v2 => func(v) === func(v2)) === i

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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