Displaying 1 to 8 from 8 results

sequency - ⚡️ Type-safe functional sequences for processing iterable data

  •    TypeScript

Type-safe functional sequences for processing iterable data in TypeScript and JavaScript. Sequency is a lightweight (5 KB minified), intensely tested (200+ tests, 99% coverage), type-safe functional programming library for processing iterable data such as arrays, sets and maps. It's written in TypeScript, compiles to ES5-compatible JavaScript and works in all current browsers and Node applications. The API is inspired by Sequences from the programming language Kotlin.

lazy-ass - Lazy node assertions without performance penalty

  •    TypeScript

Regular assertions evaluate all arguments and concatenate message EVERY time, even if the condition is true. Concatenates strings, stringifies objects, calls functions - only if condition is false.

transducist - Ergonomic JavaScript/TypeScript transducers for beginners and experts.

  •    TypeScript

Ergonomic JavaScript/TypeScript transducers for beginners and experts. This computation is very efficient because no intermediate arrays are created and work stops early once 100 people are found.

lazy-arr - Arrays that look just like regular JavaScript arrays, but are computed lazily.

  •    TypeScript

Arrays that look just like regular JavaScript arrays, but are computed lazily. Like Scala or Haskell's lazy streams. Read more about it in the introductory blog post: https://performancejs.com/post/ewffd34/Introducing:-Lazy-arrays-in-JavaScript. Lazy-arr takes a function, and uses it to lazily generate values for the array. The function takes a numerical array index (eg. 5) and should return the value for that index in the array. The function doesn't have to be idempotent, but its return value will be cached (you can then delete it from cache, if you want).




inversify-inject-decorators - Lazy evaluated property injection decorators

  •    TypeScript

Lazy evaluated property injection decorators. Some frameworks and libraries take control over the creation of instances of a given class. For example, React takes control over the creation of instances of a given React component. This kind of frameworks and libraries prevent us from being able to use constructor injection and as a result they are not easy to integrate with InversifyJS.

45 - A Functional, monadic test-runner

  •    TypeScript

45 is the fast and functional test runner that is easy to use and gets out of your way. When running 45 from the command line, it will look for all test files it can, collecting all exports, of no particular export name, that adhere to the Test interface described in the types section. This means that 45 can be extended to handle new test types not offered here via 3rd party libraries.