Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renato-bohler/what-the-filter
A visual playground to JavaScript array & object transformations.
https://github.com/renato-bohler/what-the-filter
array javascript object playground transformation
Last synced: 16 days ago
JSON representation
A visual playground to JavaScript array & object transformations.
- Host: GitHub
- URL: https://github.com/renato-bohler/what-the-filter
- Owner: renato-bohler
- License: mit
- Created: 2020-09-27T22:54:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T20:33:05.000Z (over 2 years ago)
- Last Synced: 2024-02-17T12:37:04.248Z (9 months ago)
- Topics: array, javascript, object, playground, transformation
- Language: TypeScript
- Homepage: https://bohler.dev/what-the-filter/
- Size: 24.1 MB
- Stars: 153
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# what the filter?
## A visual playground to JavaScript array & object transformations ([try it out!](https://renato-bohler.github.io/what-the-filter))
# How to use
Access [this address](https://renato-bohler.github.io/what-the-filter) and change the implementation of the `whatTheFilter` function. An informative diagram will be generated with whatever you return in this function.# Under the hood
What the filter transforms the input code into an AST (abstract syntax tree) to analyze which methods were called with the corresponding arguments, input and output.# Extra features
## Detailed errors
If any error occurs in the call chain of your code, the diagram will still output every step of execution up until the error occurred, and it will also provide more details on why this error probably occurred.
## Execution steps
Some methods will even show a "step by step" execution, dissecting how its input is transformed to its output, step by step:
## Warnings
Let's be honest: sometimes JavaScript works in mysterious ways. That's why some methods will output some warnings: