I find myself writing `item = item instanceof Array ? item : [item]` a lot, so I decided to make a simple library to does it for me. A few examples:
The lodash method `_.toArray` exported as a module.
Lazy Range function for JS. Exposes forEach forEachAsync and toArray.
TypeScript definitions for lodash.toarray
Concatenate a readable stream's data into a single array
utility functions for node.js, including: interpolate, toArray, size, type, capitalise, isUrl, toString, slice
- [x] isArray - [x] toArray - [x] arrayAdd - [x] arrayRemove - [x] arrayIncludes
Module for working with CIDR (v4, v6)
TypeScript utility similar to lodash/underscore, focused on array: add, remove, search, filter; string: is, contains, modification; and object: values, clone, hasProps, getProps, extend, map, toArray.
Tree with filter, map, forEach, toArray, some, every, find, etc.
Turn an array like into an array
TypeScript definitions for stream-to-array
Base class for writable streams
Inspired by range function for Python. PyRange creates an object that stores only 3 values (start, stop, step) and corresponding methods (map, forEach, fill, toArray, toIterator, ...).
Extremely fast double-ended queue implementation
Simple Lazy Ranges for Node/Javascript
A small set of utilities for streams.
Reakit utils
Yet Another Linked List
Lazy-evaluating list of files, based on globs or regex patterns
just your run-of-the-mill toArray method
Utility that lets you turn a process into a highland stream.
Light implementation of binary buffer with helpers for easy access.
Composable functional (async) iterable helpers
High-performance transducers, functional optics, and reactive primitives — with WebAssembly bindings for JavaScript
Pure Rust implementation of the BSV Blockchain SDK
Tool for wrapping JavaScript modules as WebAssembly components using the QuickJS engine
Bit permutations and bit-packed polycube/grid structures in Rust
Copy number alteration inference from scRNA-seq data
Cross-language temporary (disposable/throwaway) email detection library. Covers 2740 fake email providers.
Composable, async, stream-first computation in pure Rust
WebAssembly bindings for TrustformeRS transformer library
Visual search engine for images using Deep Learning models to extract features
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.