1.1.5 • Published 2 days ago

@mj-studio/js-util v1.1.5

Weekly downloads
50
License
MIT
Repository
github
Last release
2 days ago

JavaScript utilities for MJ Studio

ogimage-1260-630

JS Check


Install

yarn add @mj-studio/js-util
npm install @mj-studio/js-util

Usage

  • isPromise : check is promise
  • isPlainObject : check is plain object
  • camelCase : convert snake_case string to camelCase
  • camelCaseObject : convert keys of object to camelCased
  • convertJsonKeys : convert keys of json object to something others
  • replaceJsonKeysRecursively : replace json value matchs with key selector
  • replaceJsonValuesRecursively : replace json key matches with key selector
  • filterJsonKeys : filter keys of json object to something others
  • reverseObjectKeyValues : reverse key and value in object
  • groupByArray : group object as arrays with key a provider callback
  • groupByObject : group object as objects with key a provider callback
  • doBatch : with list, do something with batched manner and return results of callback as a list
  • And.. other things!

Promise helper

  • withTimeout : set max running time of promise, if exceeds it will reject.
  • withMinimumResolveTime : set minimum running time of promise
1.1.5

2 days ago

1.1.4

2 days ago

1.1.3

5 days ago

1.1.2

5 days ago

1.0.36

5 days ago

1.0.35

8 days ago

1.0.33

1 month ago

1.0.32

1 month ago

1.0.34

1 month ago

1.0.31

1 month ago

1.0.30

1 month ago

1.0.29

2 months ago

1.0.28

2 months ago

1.0.27

2 months ago

1.0.26

2 months ago

1.0.25

2 months ago

1.0.24

2 months ago

1.0.23

2 months ago

1.0.22

3 months ago

1.0.21

3 months ago

1.0.19

3 months ago

1.0.17

3 months ago

1.0.16

3 months ago

1.0.15

3 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago