🔭
Eyepiece WORK-IN-PROGRESS !!!
Eyepiece is a JavaScript/TypeScript utility library inspired by functional optics that focuses on pinpoint processing of data within objects/arrays. It can be used generally but was designed with Hyperapp usage in mind.
// TODO:
Here's an introductory example using TypeScript:
// introductory example thingy
Yeah But Why?
// TODO:
If we want to immutably update an object...
Installation
// TODO:
Guide
// TODO:
API Reference
// TODO:
eye()
get()
has()
isKey()
set()
Since functions within a focus path will get executed many path construction possibilities.
Alternatives
-
Eyepiece takes some inspiration from shades both philosophically and syntactically.
-
Optix is a more feature-rich alternative. However, Eyepiece is intentionally limited in scope.