commonly-used-utils
Advanced tools
Comparing version 1.0.0-beat6 to 1.0.0-beat7
{ | ||
"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 { |
15924
16
329