1.8.0 β€’ Published 5 months ago

myfx v1.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

My=f(x)

npm NPM

//object
_.each<string, string>({ 1: 'a', 2: 'b', 3: 'c' }, (v,k)=>{})
//dom list
_.each<HTMLElement>(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 | δΈ­ζ–‡

Myfx

Myfx is a modular utility library with more utils, higher performance and simpler declarations

Features

  • Unified interface for collections and other modules
  • 200+ Pure functions
  • Lazy evaluation
  • Tree APIs
  • Full dateTime/number formatter
  • and more...

Quick start

  1. install
npm i myfx
  1. import
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
1.8.0

5 months ago

1.7.0

6 months ago

1.6.1

6 months ago

1.6.0

6 months ago

1.5.0

7 months ago

1.4.15

8 months ago

1.4.16

8 months ago

1.4.14

9 months ago

1.4.13

9 months ago

1.4.12

10 months ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.9

12 months ago

1.4.11

11 months ago

1.4.8

1 year ago

1.4.10

11 months ago

1.4.7

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago