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

commonly-used-utils

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commonly-used-utils - npm Package Compare versions

Comparing version 1.0.0-beat6 to 1.0.0-beat7

.idea/vcs.xml

2

package.json
{
"name": "commonly-used-utils",
"version": "1.0.0-beat6",
"version": "1.0.0-beat7",
"description": "",

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

@@ -23,3 +23,3 @@ import { isObject, type } from './utils/basics'

self = true, // 是否包含自身
first = true, // 层级判断
firstLayer = true, // 首层判断
) => {

@@ -32,3 +32,3 @@ if (!array.length) {

if (item[attr] === value) {
return self ? [item] : first ? [] : item
return self ? [item] : firstLayer ? [] : item
}

@@ -35,0 +35,0 @@

@@ -30,2 +30,3 @@

export function removeItem(...param)
export function sleep(time?: number)

@@ -32,0 +33,0 @@ export class NotRepeatedArray {

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