just

repository·master·Indexed 27 days ago

https://github.com/angus-c/just

A library of zero-dependency, single-purpose JavaScript utility modules designed to be lightweight and efficient alternatives to bulky utility libraries. Version 1.22.4 includes a suite of utilities such as just-cartesian-product, just-compact, just-flatten-it, just-group-by, just-index, just-insert, just-intersect, just-last, just-mean, just-median, just-mode, just-order-by, just-partition, just-percentile, just-permutations, just-random, and just-range.

Tokens
59.8K
Snippets
220
Records
441
Agent score
89%

What's inside just

  1. Overview of Just utility modules

    master
    Just is a collection of zero-dependency npm modules designed to perform single, specific tasks. It is a lightweight alternative to larger utility libraries, making it suitable for performance-sensitive environments like PWAs where minimizing bundle size is critical.
  2. Choose between Just and Lodash

    master

    Deciding whether to use Just or Lodash depends on your project's priorities:

    • Use Lodash if:

      • You need to cover specific edge cases (Lodash is highly robust with edge cases).
      • You are processing very large datasets (100,000+ records) where runtime performance gains outweigh the extra JavaScript payload.
      • You require specific methods that Just does not provide.
      • You need advanced features like argument coercion, _ placeholders in curry, or specific behaviors in debounce/throttle (e.g., cancellation or flushed methods).
    • Use Just if:

      • You care about minimizing your JavaScript footprint (especially critical for mobile web development and users on 2G/3G connections).
      • You want lightweight, dependency-free, and hand-written utilities that are typically well under 1kB minified/gzipped.