- Extend functions for object, array, 2d-array, entries, and nested object.
- Modularized & install on demand.
- Lightweight.
- Support both ESM and CJS module.
$ npm install @vect/<tool-name>
Consolidated functions
vector | Functions for 1d-array(vector) | core | |
matrix | Functions for 2d-array(matrix) | core | |
column | Functions for matrix column | core | |
entries | Functions for entries | core | |
object | Functions for object | core | |
nested | Functions for nested object | core | |
Functions to create new instances
vector-init | Construct vector | init | |
matrix-init | Construct matrix | init | |
entries-init | Construct entries | init | |
object-init | Construct object | init | |
Algebra space for array and 2d-array
vector-algebra | algebra space for vector | algebra | |
matrix-algebra | algebra space for matrix | algebra | |
Element operation for array, 2d-array and object
vector-index | element operation for vector | index | |
matrix-index | element operation for matrix | index | |
object-index | element operation for object | index | |
Iterator or mapping functions
vector-mapper | Mapper/iterate for vector | mapper | |
matrix-mapper | Mapper/iterate for matrix elements | mapper | |
column-mapper | Mapper/iterate for matrix column | mapper | |
columns-mapper | Mapper/iterate for matrix columns | mapper | |
entries-mapper | Mapper/iterate for entries | mapper | |
object-mapper | Mapper/iterate for object | mapper | |
vector-zipper | Zipper for vector | zipper | |
matrix-zipper | Zipper for matrix elements | zipper | |
column-zipper | Zipper for matrix column | zipper | |
columns-zipper | Zipper for matrix columns | zipper | |
entries-zipper | Zipper for entries | zipper | |
object-zipper | Zipper for object | zipper | |
vector-indicator | Indicator for vector | indicator | |
matrix-indicator | Indicator for matrix elements | indicator | |
column-indicator | Indicator for matrix column | indicator | |
columns-indicator | Indicator for matrix columns | indicator | |
entries-indicator | Indicator for entries | indicator | |
vector-select | Select vector by index list | select | |
object-select | Select object by key list | select | |
columns-select | Select columns by column indexes | select | |
vector-stat | Statistics for vector | statistics | |
matrix-stat | Statistics for matrix elements | statistics | |
column-stat | Statistics for matrix column | statistics | |
columns-stat | Statistics for matrix columns | statistics | |
entries-stat | Statistics for entries | statistics | |
vector-update | Splices vector by index list | update | |
columns-update | Pop/push/(un)shift/splices columns | update | |
vector-margin | Margin for vector | margin | |
matrix-margin | Margin for matrix | margin | |
entries-margin | Margin for entries | margin | |
matrix-quantifier | Every & some for matrix elements | quantifier | |
column-quantifier | Every & some for matrix column | quantifier | |
callable | Create a callable class | misc | |