🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

complex-utils

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complex-utils - npm Package Compare versions

Comparing version
2.8.6
to
2.8.7
+1
-1
history.md
### 2.8.6
### 2.8.6/7
- feat:parseLayout添加边界判断函数isLayoutBoundary

@@ -4,0 +4,0 @@

{
"name": "complex-utils",
"version": "2.8.6",
"version": "2.8.7",
"description": "a complex utils",

@@ -5,0 +5,0 @@ "main": "index.ts",

@@ -10,3 +10,3 @@

export const isLayoutBoundary = (index: number, size: number, type: 'left' | 'right' = 'right') => {
return (index + type === 'right' ? 1 : 0) % size === 0
return (index + (type === 'right' ? 1 : 0)) % size === 0
}

@@ -13,0 +13,0 @@