partial.lenses
optics-ts
partial.lenses | optics-ts | |
---|---|---|
2 | 3 | |
905 | 680 | |
0.0% | - | |
0.0 | 8.1 | |
over 2 years ago | 22 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
partial.lenses
-
Delete an element from an associative array
If this is something you do often, maybe consider lenses library, like partial.lenses — using it you can target values at arbitrary nesting levels and code should be more concise:
-
Typing lens-like functions
I'm trying to make a series of functions with an interface similar to Lodash's get, set, and update but with some of functionality of an optics library like partial.lenses.
optics-ts
- JavaScript Object Notation (JSON) Pointer
-
Advanced Large Object Management with jotai
The trick lies within the optic-ts integration.
-
Jotai, now with Optics
Fast forward to now and we are learning more about Jotai, a Recoil alternative from Poimandres ( creators of react-three-fiber, etc.). Needless to say, we were very excited when we stumbled upon Jotai Issue #44, a discussion concerning focusable atoms started by Meris Bahtijaragic and the compelling work that resulted, jotai-optics. This code wraps another library we have been very intrigued by as of late, optics-ts which provides a whole new level of typesafe, functional goodness.
What are some alternatives?
python-lenses - A python lens library for manipulating deeply nested immutable structures
monocle-ts - Functional optics: a (partial) porting of Scala monocle
RME - RME stands for Rest Made Easy. Fast lightweight JavaScript framework for web UI.
Enzyme - JavaScript Testing utilities for React
focal - Program user interfaces the FRP way.
isomorphic-table-cards - Table and Cards views with animated transitions. No dependencies, just Vanilla Javascript, CSS, and HTML.
jotai-optics - Jotai integration library for optics-ts
visual-graph-isomorphism - Display graph isomorphism visually
jotai-devtools - Redux Devtools integrations for jotai.
dinero.js - Create, calculate, and format money in JavaScript and TypeScript.
jsonpath - A Go implementation of JSONPath