Socket
Socket
Sign inDemoInstall

@zag-js/utils

Package Overview
Dependencies
Maintainers
1
Versions
763
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-dev-20240712125036 to 0.0.0-dev-20240712143332

3

dist/index.d.ts

@@ -10,2 +10,3 @@ declare function toArray<T>(v: T | T[] | undefined | null): T[];

declare const removeAt: <T>(v: T[], i: number) => T[];
declare const uniq: <T>(v: T[]) => T[];
declare const addOrRemove: <T>(v: T[], item: T) => T[];

@@ -58,2 +59,2 @@ declare function clear<T>(v: T[]): T[];

export { type IndexOptions, type MaybeFunction, type Nullable, add, addOrRemove, callAll, cast, chunk, clear, compact, createSplitProps, first, fromLength, has, hasProp, invariant, isArray, isBoolean, isDev, isEmpty, isEqual, isFunction, isNull, isNumber, isObject, isString, json, last, match, next, nextIndex, noop, pick, prev, prevIndex, remove, removeAt, runIfFn, splitProps, toArray, tryCatch, uuid, warn };
export { type IndexOptions, type MaybeFunction, type Nullable, add, addOrRemove, callAll, cast, chunk, clear, compact, createSplitProps, first, fromLength, has, hasProp, invariant, isArray, isBoolean, isDev, isEmpty, isEqual, isFunction, isNull, isNumber, isObject, isString, json, last, match, next, nextIndex, noop, pick, prev, prevIndex, remove, removeAt, runIfFn, splitProps, toArray, tryCatch, uniq, uuid, warn };

@@ -61,2 +61,3 @@ "use strict";

tryCatch: () => tryCatch,
uniq: () => uniq,
uuid: () => uuid,

@@ -80,2 +81,3 @@ warn: () => warn

var removeAt = (v, i) => v.filter((_, idx) => idx !== i);
var uniq = (v) => Array.from(new Set(v));
var addOrRemove = (v, item) => {

@@ -311,2 +313,3 @@ if (has(v, item)) return remove(v, item);

tryCatch,
uniq,
uuid,

@@ -313,0 +316,0 @@ warn

{
"name": "@zag-js/utils",
"version": "0.0.0-dev-20240712125036",
"version": "0.0.0-dev-20240712143332",
"description": "",

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

@@ -22,2 +22,4 @@ export function toArray<T>(v: T | T[] | undefined | null): T[] {

export const uniq = <T>(v: T[]): T[] => Array.from(new Set(v))
export const addOrRemove = <T>(v: T[], item: T): T[] => {

@@ -24,0 +26,0 @@ if (has(v, item)) return remove(v, item)

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc