🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@zag-js/utils

Package Overview
Dependencies
Maintainers
0
Versions
853
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/utils - npm Package Compare versions

Comparing version

to
0.58.0

9

dist/index.js

@@ -118,2 +118,9 @@ "use strict";

var isArrayLike = (value) => value?.constructor.name === "Array";
var isArrayEqual = (a, b) => {
if (a.length !== b.length) return false;
for (let i = 0; i < a.length; i++) {
if (!isEqual(a[i], b[i])) return false;
}
return true;
};
var isEqual = (a, b) => {

@@ -129,3 +136,3 @@ if (Object.is(a, b)) return true;

if (isArrayLike(a) && isArrayLike(b)) {
return Array.from(a).toString() === Array.from(b).toString();
return isArrayEqual(Array.from(a), Array.from(b));
}

@@ -132,0 +139,0 @@ if (!(typeof a === "object") || !(typeof b === "object")) return false;

2

package.json
{
"name": "@zag-js/utils",
"version": "0.57.0",
"version": "0.58.0",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

const isArrayLike = (value: any) => value?.constructor.name === "Array"
const isArrayEqual = (a: any[], b: any[]): boolean => {
if (a.length !== b.length) return false
for (let i = 0; i < a.length; i++) {
if (!isEqual(a[i], b[i])) return false
}
return true
}
export const isEqual = (a: any, b: any): boolean => {

@@ -17,3 +25,3 @@ if (Object.is(a, b)) return true

if (isArrayLike(a) && isArrayLike(b)) {
return Array.from(a).toString() === Array.from(b).toString()
return isArrayEqual(Array.from(a), Array.from(b))
}

@@ -20,0 +28,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet