compute-cosine-similarity
Computes the cosine similarity between two arrays.
Found 9802 results for array similarity
Computes the cosine similarity between two arrays.
Computes the cosine similarity between two vectors
Segregates values by similarity.
Segregates values by similarity.
Calculate the cosine distance between arrays
Calculates the similarity of 2 string arrays and sorts the seconds one by similarity to first
Get the first fulfilled promise that satisfies the provided testing function
Get the first path that exists on disk of multiple paths
Get the native type of a value.
Array#isArray for older browsers
Determines if an object can be used as an array
Tiny queue data structure
User-friendly glob matching
Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
Minimal async jobs utility library, with streams support
Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Which kind of Typed Array is this JavaScript value? Works cross-realm, without `instanceof`, and despite Symbol.toStringTag.
Run an array of functions in parallel
Create an array of unique values, in order, from the input arrays
List of binary file extensions
Returns true if a value is a plain object, array or function.
Flatten nested arrays
An ES2019 spec-compliant `Array.prototype.flat` shim/polyfill/replacement that works as far down as ES3.
Robustly get the byte length of a Typed Array
An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.
Robustly get the byte offset of a Typed Array
Is this value a JS ArrayBuffer?
ES spec-compliant shim for ArrayBuffer.prototype.slice
Is this value a JS SharedArrayBuffer?
An ES2019 spec-compliant `Array.prototype.flatMap` shim/polyfill/replacement that works as far down as ES3.
A list of SPDX license identifiers
A simple list of possible Typed Array names.
extend like a boss
[](https://www.npmjs.com/package/levenary) [](https://github.com/tanhauhau/levenary/actions)
Convert a value to an array
Robustly get the length of a Typed Array
Simply swizzle your arguments
An ESnext spec-compliant `Object.groupBy` shim/polyfill/replacement that works as far down as ES3.
Detect whether or not an object is a Typed Array
Array manipulation, ordering, searching, summarizing, etc.
An ESnext spec-compliant `Array.prototype.toSorted` shim/polyfill/replacement that works as far down as ES3.
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
TypedArray polyfill for old browsers
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Push an array of items into an array, while being robust against prototype modification
Creates a shallow clone of any JavaScript value.
An ESnext spec-compliant `Array.prototype.findLastIndex` shim/polyfill/replacement that works as far down as ES3.
An ESnext spec-compliant `Array.prototype.findLast` shim/polyfill/replacement that works as far down as ES3.
Remove duplicate values from an array. Fastest ES5 implementation.
Parse postgres array columns
Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.
a few common utility template tags for ES2015
Combines a list of arrays, returning a single array with unique values, using strict equality for comparisons.
A static list of the Node.js builtin modules from the latest Node.js version
Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.
Sort the keys of an object
Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.
Visit a method over the items in an object, or map visit over the objects in an array.
Create an array by repeating the given value n times.
Recursively flatten an array or arrays.
Create an array without duplicates
Map `visit` over an array of objects.
Utils for working with JavaScript classes and prototype methods.
Iterator abstraction based on ES6 specification
Get a compare function for array to sort
Check if a string matches the name of a Node.js builtin module
Isomorphic, functional type-checking for Javascript
Turn anything into an array
Guarantees an array back
No-bullshit, ultra-simple, 35-lines-of-code async parallel forEach / map function for JavaScript.
Create an array with values that are present in the first input array but not additional ones
List of text file extensions
ES2015 `Array#findIndex()` ponyfill
Join paths and globs.
An ES5 spec-compliant `Array.prototype.reduce` shim/polyfill/replacement that works as far down as ES3.
Array-slice method. Slices `array` from the `start` index up to, but not including, the `end` index.
Array methods for ES6 Iterators
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
Like an array, but rounder.
Removes duplicates from a sorted array in place
Get the longest item in an array.
Loop over each item in an array and call the given function on every element.
Natural Sort algorithm for Javascript - Version 0.7 - Released under MIT license
Convert an argument into a valid iterator. Based on the `.makeIterator()` implementation in mout https://github.com/mout/mout.
Replace or remove multiple items in an array.
Typescript-compatible minimalistic shallow equality check for arrays/objects
Check if two arrays are equal
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Microsoft sucks
A simple and composable way to validate data in JavaScript (and TypeScript).
Return true if a value is a valid glob pattern or patterns.
Iterate any iterable JS value. Works robustly in all environments, all versions.
Concatenate a readable stream's data into a single array
ES spec-compliant shim for TypedArray.prototype.slice
List of Markdown file extensions
Find the greatest satisfied semver range from an array of ranges.
An ES5 spec-compliant `Array.prototype.map` shim/polyfill/replacement that works as far down as ES3.
An ES5 spec-compliant `Array.prototype.filter` shim/polyfill/replacement that works as far down as ES3.
Run an array of functions in series
Get the last or last n elements in an array.
Validates if a value is an array.
Array#filter for older browsers.
Isomorphic map-reduce function to flatten an array into the supplied array
Creates an async iterator for a variety of inputs in the browser and node. Supports fetch, node-fetch, and cross-fetch
An ESnext spec-compliant `Array.prototype.toReversed` shim/polyfill/replacement that works as far down as ES3.
Run promise-returning & async functions in series, each passing its result to the next
Run an array of functions in parallel, but limit the number of tasks executing at the same time
Validates if a value is an integer array.
Get all but the last element or last n elements of an array.
A ponyfill for the ES 2015 (ES6) `Array.from()`.
Faster alternative to javascript's native filter method.
Computes the greatest common divisor (gcd).
An optionally-asynchronous forEach with an interesting interface.
Computes the least common multiple (lcm).
Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used.
make a shallow copy of an object or array
Faster, node.js focused alternative to JavaScript's native array map.
filter in array tree
`Array#forEach()` but it’s possible to define where to move to next
Treat multiple buffers as one
Sort array elements in descending order.
Sort the keys in an object.
Sort array elements in ascending order.
`[].map(f)` for older browsers
finds an item in an array matching a predicate function, and returns its index
Sorts any JavaScript array in a predictable way (deep equal arrays are always sorted in the same order)
ES6 Array.find ponyfill. Return the first array element which satisfies a testing function.
Make any value an array. No dependencies.
Multidimensional Arrays
A faster Node.js alternative to Array.prototype.slice.call(arguments)
Microsoft sucks
Watch an object or array for changes
`[].reduce()` for old browsers
Make array iteration easy when using async/await and Promises
Generates an array of consecutive integers starting at 0
Check whether a value is "empty".
Find the first element in an array that passes a callback test. Equivalent to underscore.find()
Safely push each item of an array to a stream
Test if a value is a Float64Array.
Test if a value is an array.
Return a function which tests if every element in an array passes a test condition.
Float32Array.
Reuse typed arrays
Test if a value is a Uint32Array.
Sort an array on an object property
A simple and composable way to validate data in JavaScript (and TypeScript).
Returns true if the given number is odd, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.
Float64Array.
A tiny, faster alternative to native Array.prototype.every
Return a data type from a string representing the type
Maximum unsigned 32-bit integer.
Uint8Array.
Test if a value is a Uint8Array.
Test if a value is a Uint16Array.
Test if a value is a Float32Array.
Packs an array-of-arrays into a single ndarray
Uint32Array.
Uint16Array.
Deep-merge the values of one object structure into another
Initialize an array of arrays to a constant
Rotate all items in an array
Find [nd-]array min/max values
List of getter/setter properties for JavaScript types
Rearrange array elements by index array
creates a new array with given range
Normalize array (possibly n-dimensional) to zero mean and unit variance
Simple iterator for flat and multi section lists
Move an array item to a different position
flattens nested vertex data into a typed array
Convert Buffer to ArrayBuffer
Deep copy objects and arrays
List of properties for JavaScript objects
List of JavaScript types
Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)
Returns an array containing the initial elements which both input arrays have in common
The swiss army knife for binary data in JavaScript.
Makes easy to convert JSON to CSV
Comma delimit an array for human readability, the Oxford comma is optional.
Array / Arraylike utilities
More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
Rotate an array by a given number of steps
Creates a real Array from almost anything.
Compare your item to items in an array and get the closest one.
Computes the dot product between two numeric arrays.
Chai plugin for JSON Schema v4
Isomorphic, load-anywhere function to sort an array by scalar, deep or computed values in any standard or custom order
Merge two lists, trying to preserve the order of both
A fast implementation of a fisher-yates shuffle that does not mutate the source array.
Extensible deep value equivalence checking for any data types
Return true if the given number is even.
Wrapper for [braces] to enable brace expansion for arrays of patterns.
Functional tree editing, manipulation & navigation
Returns a copy of an object, sorted deeply by its keys, without mangling any arrays inside of it
An ES5 spec-compliant `Array.prototype.every` shim/polyfill/replacement that works as far down as ES3.
Get unique values of an array. Really, like deeply unique.
high-performance, zero-dependency circular reference check for objects (or arrays)
Recursively iterates over arrays and objects
Give eachr an item to iterate (array, object or map) and an iterator, then in return eachr gives iterator the value and key of each item, and will stop if the iterator returned false.
Computes the L2 norm (Euclidean norm) of an array of values.
Returns true if the given is falsey (according to JavaScript) or matches a 'falsey' keyword.
Module for working with CIDR (v4, v6)
An RxJS map operator that takes an observable of arrays as input and emits arrays where each element represents emissions from the projected observable.
Flatten a nested array.
List of common default router IP addresses
Lazily initialized properties for objects
Adds array support to node-glob, sync and async. Also supports tilde expansion (user home) and resolving to global npm modules.
🔧 Fast, modern, and practical utility library for FP in TypeScript.
A utility function to index arrays by any criteria
Reduce an array to unique values, optionally into a separate array.
Sort string index ranges
Turn an array into a list of comma-separated values, appropriate for use in an English sentence.
Object -> [[key0, value0], [key1, value1]...]
recursive object extending & overriding
Run an array of functions in series, each passing its results to the next function (waterfall)
Pipe an Array through Node.js streams
More than 130 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
Asynchronous iterator function for parallel processing.
Join all elements of an array and create a human-readable string
Parse dotenv files for Boolean, Array, and Number variable types, built for CrocodileJS
Promised First-In-First-Out buffer. Await on push to be told when a value is consumed and await on shift for a value to consume when the buffer is empty.
Check if the given value is an Array
Randomize the order of the elements in a given array.
Fast intersection of multiple arrays
Returns an array filled with the specified input
Like lodash's _.defaultsDeep, but with array preservation
Async array reduce. Asynchronously applies a function against an accumulator and each element in an array (from left to right, in series) to reduce it to a single value.
Read, write or test a data structure's nested property via a string like 'my.nested.property'. It works through arrays and objects.'
An ES spec-compliant `Array.prototype.forEach` shim/polyfill/replacement that works as far down as ES3.
Execute a method out from an object.
Create an error from an array of error messages
A complete, fully tested data structure library written in TypeScript.
Get consecutively unique elements from an array
A data structure that combines a hash and an array for fast dictionary lookup and traversal by complex keys.
create a new array filled with a value, or zero
Find the intersection of two arrays
Transform dot-delimited strings to array of strings for Node.js and the browser.
remove items from a javascript array without generating memory garbage
A function for iterating over objects, arrays, strings and ranges
Remembers the highest/lowest values in a data set of any size.
Uppercase first character of each element in arrays of strings.
A map function that can map over almost anything.
List of video file extensions
Sort objects by property names using native Array.sort()
Collection of image extensions
Group array of objects into lists.
Circular fixed size array
Creates and makes an array without duplicates. Even with array of objects with a specified matcher.
A parallel, asynchronous implementation of forEach in ES6 with a configurable maximum degree of parallelism.