Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/holyhigh2/myfx
A modular utility library with more utils, higher performance and simpler declarations ...
https://github.com/holyhigh2/myfx
Last synced: 8 days ago
JSON representation
A modular utility library with more utils, higher performance and simpler declarations ...
- Host: GitHub
- URL: https://github.com/holyhigh2/myfx
- Owner: holyhigh2
- License: mit
- Created: 2023-05-28T14:38:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T16:01:56.000Z (29 days ago)
- Last Synced: 2024-11-28T16:28:44.809Z (29 days ago)
- Language: TypeScript
- Size: 755 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# My=f(x)
![npm](https://img.shields.io/npm/v/myfx?style=plastic)
![NPM](https://img.shields.io/npm/l/myfx)```ts
//object
_.each({ 1: 'a', 2: 'b', 3: 'c' }, (v,k)=>{})
//dom list
_.each(document.body.children, (el)=>{})
//array
_.each([1, 2, 3], num=>{})
//set
_.each(new Set([1, 2, 3]), num=>{
if(...)
return false// you can break the loop at any time
})
```
> English | [δΈζ](./README_ZH.md)## Myfx
Myfx is a modular utility library with more utils, higher performance and simpler declarations- [π Documentation](https://holyhigh2.github.io/myfx/)
## Features
- Unified interface for collections and other modules
- **200+** Pure functions
- Lazy evaluation
- Tree APIs
- Full dateTime/number formatter
- [and more...](https://holyhigh2.github.io/myfx/api/readme/)## Quick start
1. install
```sh
npm i myfx
```
2. import
```ts
import _ from 'myfx'
//or
import {each} from 'myfx'
//or
import {each,map} from 'myfx/collection'
//or
import _ from 'https://cdn.skypack.dev/myfx'
```## Development
1. use `test` to do jest
2. use `build` to rollup myfx
3. use `doc` to gen tsdoc