1.1.5 • Published 2 days ago
@mj-studio/js-util v1.1.5
JavaScript utilities for MJ Studio
Install
yarn add @mj-studio/js-util
npm install @mj-studio/js-util
Usage
isPromise
: check is promiseisPlainObject
: check is plain objectcamelCase
: convert snake_case string to camelCasecamelCaseObject
: convert keys of object to camelCasedconvertJsonKeys
: convert keys of json object to something othersreplaceJsonKeysRecursively
: replace json value matchs with key selectorreplaceJsonValuesRecursively
: replace json key matches with key selectorfilterJsonKeys
: filter keys of json object to something othersreverseObjectKeyValues
: reverse key and value in objectgroupByArray
: group object as arrays with key a provider callbackgroupByObject
: group object as objects with key a provider callbackdoBatch
: 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