网页 综合 更新时间 2026-11-14 16:26:31

index - @es-toolkit/es-toolkit - JSR

自动蜘蛛 jsr.io 正文约 2975 字
index - @es-toolkit/es-toolkit - JSR
A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.
An error class representing an aborted operation.
A Mutex (mutual exclusion lock) for async functions. It allows only one async task to access a critical section at a time.
Acquires the mutex, blocking if necessary until it is available.
Checks if the mutex is currently locked.
Releases the mutex, allowing another waiting task to proceed.
A first-in, first-out (FIFO) queue backed by a linked list.
Removes all items from the queue.
Removes and returns the item at the front of the queue.
Adds an item to the back of the queue.
Returns the item at the front of the queue without removing it.
The number of items in the queue.
A counting semaphore for async functions that manages available permits. Semaphores are mainly used to limit the number of concurrent async tasks.
Acquires a semaphore, blocking if necessary until one is available.
The number of available permits.
The maximum number of concurrent operations allowed.
Releases a semaphore, allowing one more operation to proceed.
An error class representing a timeout operation.
Creates a function that only executes starting from the n-th call. The provided function will be invoked starting from the n-th call.
Resolves an object of promises concurrently, returning an object with the same keys and resolved values.
Creates a function that invokes func, with up to n arguments, ignoring any additional arguments.
An asynchronous no-operation function that does nothing. This can be used as a placeholder or default function.
Retrieves elements from an array at the specified indices.
Attempt to execute a function and return the result or error. Returns a tuple where:
Attempt to execute an async function and return the result or error. Returns a Promise that resolves to a tuple where:
Creates a function that limits the number of times the given function (func) can be called.
Converts a string to camel case.
Converts the first character of string to upper case and the remaining to lower case.
Computes the Cartesian product of the input arrays.
Splits an array into smaller arrays of a specified length.
Splits an array into chunks of consecutive elements that share the same key.
Clamps a number within the inclusive upper bound.
Creates a shallow clone of the given object.
Creates a deep clone of the given object.
Deeply clones the given object.
Returns all r-length combinations of elements from the input array.
Removes falsey values (false, null, 0, -0, 0n, '', undefined, NaN) from an array.
Converts a string to constant case.
Count the occurrences of each item in an array based on a transformation function.
Curries a function, allowing it to be called with a single argument at a time and returning a new function that takes the next argument. This process continues until all arguments have been provided, at which point the original function is called with all accumulated arguments.
访问原文 返回搜索 https://jsr.io/@es-toolkit/es-toolkit/doc
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。