Socket
Socket
Sign inDemoInstall

es-toolkit

Package Overview
Dependencies
Maintainers
2
Versions
722
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-toolkit - npm Package Compare versions

Comparing version 1.2.0-dev.51 to 1.2.0-dev.52

dist/chunk-25R2U4KM.mjs

2

dist/array/differenceWith.d.ts

@@ -16,3 +16,3 @@ /**

* @example
* * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
* const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
* const array2 = [{ id: 2 }, { id: 4 }];

@@ -19,0 +19,0 @@ * const areItemsEqual = (a, b) => a.id === b.id;

@@ -12,3 +12,3 @@ /**

* @example
* * const array = [1, 2, 3, 4, 5];
* const array = [1, 2, 3, 4, 5];
* const result = drop(array, 2);

@@ -15,0 +15,0 @@ * // result will be [3, 4, 5] since the first two elements are dropped.

@@ -12,3 +12,3 @@ /**

* @example
* * const array = [1, 2, 3, 4, 5];
* const array = [1, 2, 3, 4, 5];
* const result = dropRight(array, 2);

@@ -15,0 +15,0 @@ * // result will be [1, 2, 3] since the last two elements are dropped.

@@ -8,3 +8,3 @@ /**

* @param {T[]} arr - The array from which to drop elements.
* @param {function(item: T): boolean} canContinueDropping - A predicate function that determines
* @param {(item: T) => boolean} canContinueDropping - A predicate function that determines
* whether to continue dropping elements. The function is called with each element from the end,

@@ -11,0 +11,0 @@ * and dropping continues as long as it returns true.

@@ -16,3 +16,3 @@ /**

* @example
* * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
* const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];
* const array2 = [{ id: 2 }, { id: 4 }];

@@ -19,0 +19,0 @@ * const areItemsEqual = (a, b) => a.id === b.id;

@@ -6,3 +6,3 @@ /**

* @param {T[]} arr2 - The second array.
* @param {function(item: T): U} mapper - The function to map array elements to comparison values.
* @param {(item: T) => U} mapper - The function to map array elements to comparison values.
* @returns {T[]} A new array containing the union of unique elements from `arr1` and `arr2`, based on the values returned by the mapping function.

@@ -9,0 +9,0 @@ *

@@ -11,3 +11,3 @@ /**

* @example
* * const array = [1, 2, 2, 3, 4, 4, 5];
* const array = [1, 2, 2, 3, 4, 4, 5];
* const result = uniq(array);

@@ -14,0 +14,0 @@ * // result will be [1, 2, 3, 4, 5]

@@ -6,2 +6,6 @@ /**

*
* @param {T[]} arr - The array to process.
* @param {(item: T) => U} converter - The function used to convert the array elements.
* @returns {T[]} A new array containing only the unique elements from the original array, based on the values returned by the converter function.
*
* @example

@@ -8,0 +12,0 @@ * ```ts

@@ -6,2 +6,6 @@ /**

*
* @param {T[]} arr - The array to process.
* @param {(item1: T, item2: T) => boolean} areItemsEqual - The function used to compare the array elements.
* @returns {T[]} A new array containing only the unique elements from the original array, based on the values returned by the comparator function.
*
* @example

@@ -8,0 +12,0 @@ * ```ts

@@ -11,3 +11,3 @@ /**

* @param {T[]} arr2 - The second array.
* @param {function(item: T): U} mapper - The function to map array elements to comparison values.
* @param {(item: T) => U} mapper - The function to map array elements to comparison values.
* @returns {T[]} An array containing the elements that are present in either `arr1` or `arr2` but not in both, based on the values returned by the mapping function.

@@ -14,0 +14,0 @@ *

@@ -11,3 +11,3 @@ /**

* @param {W[]} [arr4] - The fourth array to zip (optional).
* @param {function} combine - The combiner function that takes corresponding elements from each array and returns a single value.
* @param {(...items: T[]) => R} combine - The combiner function that takes corresponding elements from each array and returns a single value.
* @returns {R[]} A new array where each element is the result of applying the combiner function to the corresponding elements of the input arrays.

@@ -14,0 +14,0 @@ *

@@ -13,3 +13,3 @@ /**

* @example
* * const result1 = clamp(10, 5); // result1 will be 5, as 10 is clamped to the bound 5
* const result1 = clamp(10, 5); // result1 will be 5, as 10 is clamped to the bound 5
* const result2 = clamp(10, 5, 15); // result2 will be 10, as it is within the bounds 5 and 15

@@ -16,0 +16,0 @@ * const result3 = clamp(2, 5, 15); // result3 will be 5, as 2 is clamped to the lower bound 5

@@ -12,3 +12,3 @@ /**

* @example
* * const result1 = round(1.2345); // result1 will be 1
* const result1 = round(1.2345); // result1 will be 1
* const result2 = round(1.2345, 2); // result2 will be 1.23

@@ -15,0 +15,0 @@ * const result3 = round(1.2345, 3); // result3 will be 1.235

@@ -10,3 +10,3 @@ /**

* @example
* * const numbers = [1, 2, 3, 4, 5];
* const numbers = [1, 2, 3, 4, 5];
* const result = sum(numbers);

@@ -13,0 +13,0 @@ * // result will be 15

@@ -12,3 +12,3 @@ /**

* @example
* * const obj = { a: 1, b: 2, c: 3 };
* const obj = { a: 1, b: 2, c: 3 };
* const result = omit(obj, ['b', 'c']);

@@ -15,0 +15,0 @@ * // result will be { a: 1 }

@@ -12,3 +12,3 @@ /**

* @example
* * const obj = { a: 1, b: 2, c: 3 };
* const obj = { a: 1, b: 2, c: 3 };
* const result = pick(obj, ['a', 'c']);

@@ -15,0 +15,0 @@ * // result will be { a: 1, c: 3 }

@@ -13,3 +13,3 @@ /**

* @example
* * const value1 = null;
* const value1 = null;
* const value2 = undefined;

@@ -16,0 +16,0 @@ * const value3 = 42;

@@ -13,3 +13,3 @@ /**

* @example
* * const value1 = null;
* const value1 = null;
* const value2 = undefined;

@@ -16,0 +16,0 @@ * const value3 = 42;

@@ -13,3 +13,3 @@ /**

* @example
* * const value1 = undefined;
* const value1 = undefined;
* const value2 = null;

@@ -16,0 +16,0 @@ * const value3 = 42;

{
"name": "es-toolkit",
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
"version": "1.2.0-dev.51+eb514b7a",
"version": "1.2.0-dev.52+98e08371",
"workspaces": [

@@ -6,0 +6,0 @@ "docs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc