# myfx **Repository Path**: holyhigh2/myfx ## Basic Information - **Project Name**: myfx - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-06 - **Last Updated**: 2025-09-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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// 可以随时中断循环 }) ``` > 中文 | [English](./README.md) ## Myfx Myfx是一个模块化的工具函数库,具有更高的性能、更丰富的函数、更直观的声明... - [📑 文档](https://holyhigh2.github.io/myfx/) ## 特性 - 用于集合及其他模块的统一化接口 - 超过**200**个纯函数可供使用 - 惰性计算 - 树操作API - 完整的日期/数字格式化器 - [查看更多...](https://holyhigh2.github.io/myfx/api/readme/) ## 快速上手 1. 安装 ```sh npm i myfx ``` 2. 导入 ```ts import _ from 'myfx' //or import {each} from 'myfx' //or import {each,map} from 'myfx/collection' //or import _ from 'https://cdn.skypack.dev/myfx' ``` ## 开发 1. 使用 `test` 执行jest测试 2. 使用 `build` 进行打包 3. 使用 `doc` 生成tsdoc