Displaying 1 to 20 from 33 results

collect.js - 💎 Convenient and dependency free wrapper for working with arrays and objects

  •    Javascript

Using Laravel as your backend? Collect.js offers an (almost) identical api to Laravel Collections 5.5. See differences. All comparisons in collect.js are done using strict equality. Using loose equality comparisons are generally frowned upon in JavaScript. Laravel only performs "loose" comparisons by default and offer several "strict" comparison methods. These methods have not been implemented in collect.js because all methods are strict by default.

reduce-reducers - Reduce multiple reducers into a single reducer from left to right

  •    Javascript

Originally created to combine multiple Redux reducers that correspond to different actions (e.g. like this). Technically works with any reducer, not just with Redux, though I don't know of any other use cases.

workshop-js-funcional-free - :bento: Workshop sobre JS Funcional

  •    Javascript

A Funcional é a mais antiga, sua primeira linguagem foi criada em 1955 (IPL) e posteriomente a mais popular LISP foi criada em 1958. Fortran e COBOL foram criadas respectivamentes em 1956 e 1959, são imperativas. O paradigma imperativo é baseada na arquitetura de Von Neumann, enquanto que o funcional é baseado no cálculo lambda.




axax - Async Iterator Extensions for JavaScript e.g. map, reduce, filter, flatMap, etc.

  •    TypeScript

A library of async iterator extensions for JavaScript including map, reduce, filter, flatMap, pipe and more. Async iterators are a useful way to handle asynchronous streams. This library adds a number of utility methods similar to those found in lodash, underscore, Ramda or RxJs.

goreduce - Reduce Go programs

  •    Go

Reduce a program to its simplest form as long as it produces a compiler error or any output (such as a panic) matching a regular expression.For more usage information, see goreduce -h.

get - Create functions for use with map, reduce, filter, etc

  •    Javascript

Create functions for use with functional methods like map, reduce, filter, etc. that get object properties without need of anonymous wrappers.Sorry for namespaced package, all good names taken.


cwise - Component-wise operations for ndarrays

  •    Javascript

This library can be used to generate cache efficient map/reduce operations for ndarrays.Note that in the above, i is not an actual Array, the indexing notation is just syntactic sugar.

array-reduce - `[].reduce()` for old browsers

  •    Javascript

Create a result res by folding acc = f(acc, xs[i], i) over each element in the array xs at element i. If init is given, the first acc value is init, otherwise xs[0] is used.

require-glob - Requires multiple modules using glob patterns and combines them into a nested object.

  •    Javascript

Requires multiple modules using glob patterns and combines them into a nested object.Returns a promise that resolves to an object containing the required contents of matching globbed files.

p-reduce - Reduce a list of values using promises into a promise for a value

  •    Javascript

Useful when you need to calculate some accumulated value based on async resources.Returns a Promise that is fulfilled when all promises in input and ones returned from reducer are fulfilled, or rejects if any of the promises reject. The fulfilled value is the result of the reduction.

rolling-reduce - reduce over mutable collections without recomputing everything

  •    Javascript

Reduce over collections without recomputing everything when new items arrive or when items in the source change.Create a reduce object r from an initial accumulator value init.

callback-reduce - Callbacks made reducible

  •    Javascript

Reducers is a great abstraction for working with collections of values eventual or not. In fact it's great because API for working with data is same map/reduce regardless of weather it's sync or async. Another cool concept about reducers is that allows you to work with non sequnce values with the same API. It just treats atomic vaules as sequences of themself.

reducers - Library for higher-order manipulation of collections

  •    Javascript

Library for higher-order manipulation of collections, based upon reduce. Most functional languages (including beloved JS) typically come with some collection transformation functions like filter and map that take a logical collections and return transformed version of it. Unfortunately they tend to complect, by implying mechanism, order, laziness and representation. This library is an attempt to provide simple solution for some of the hard problems by decomplecting and building upon simple premise - minimum definition of collection is something that is reducible.

reducible - High-order abstraction for reducible data structures

  •    Javascript

Library defines higher-order abstraction for reducible data structures - collections based upon reduce. Most functional languages (including beloved JS) typically come with some collection transformation functions like filter and map that take a logical collections and return transformed version of it. Unfortunately they tend to complect, by implying mechanism, order, laziness and representation. This library is an attempt to provide simple solution for some of the hard problems by decomplecting and building upon simple premise - minimum definition of collection is something that is reducible.

divan - abandonia, not using this anymore

  •    Javascript

Fast in-process in-memory key-value store for node with snapshot and AOF persistance and CouchDB-style map-reduce views. Just make sure your data fits in memory, currently I wouldn't recommend divan for a dataset with more than 500K docs. You can add views via db.addView or by parsing a directory of design files via db.design(path). The design-files can either be .json files of couchdb-design-doc flavour, or .js files that export objects with map and reduce methods. Note that when using .js docs, map functions need to accept the emit function as the second parameter.

disto - mildly opinionated flux

  •    Javascript

Action creators can be however you choose. This is how I write them. The action creator helper takes a map of key/values, and generates a collection of functions that, when each are called, dispatches a unique action along with passed arguments further calling any optional function passed in the map.

object

  •    Javascript

Reduces an object to a value that is the accumulated result of running each property in the object through a callback. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.