@vect/object-mapper
Advanced tools
Comparing version 0.0.19 to 0.0.20
{ | ||
"name": "@vect/object-mapper", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "A debugging tool", | ||
@@ -33,3 +33,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/vect#readme", | ||
"gitHead": "bf98c2986bb3a9bf12df2b4f68987756a0a0844a" | ||
"gitHead": "443742948d7426fcc24443dcb19a9403ddeb7b75" | ||
} |
@@ -13,3 +13,3 @@ # @vect/object-fn | ||
[//]: <> (Shields) | ||
[badge-npm-version]: https://flat.badgen.net/npm/v/@vect/object-fn | ||
[badge-npm-version]: https://flat.badgen.net/npm/cell/@vect/object-fn | ||
[badge-npm-download-monthly]: https://flat.badgen.net/npm/dm/@vect/object-fn | ||
@@ -38,3 +38,3 @@ [badge-npm-download-total]:https://flat.badgen.net/npm/dt/@vect/object-fn | ||
- **fn** map object values and return a new object | ||
- **mutate** map object values and return the object itself | ||
- **append** map object values and return the object itself | ||
- **mapKeys** map object keys and return a new object | ||
@@ -45,3 +45,3 @@ - **mapEntries** map object entries and return a new object | ||
```js | ||
import { fn, mutate, mapKeys, mapEntries } from '@vect/object-fn' | ||
import { fn, append, mapKeys, mapEntries } from '@vect/object-fn' | ||
@@ -58,3 +58,3 @@ const ob = { | ||
mapEntries(ob, ([key, value], i) => [`${key}_${i}`, value.length]) | ||
mutate(ob, value => value.length) | ||
append(ob, value => value.length) | ||
``` | ||
@@ -61,0 +61,0 @@ |
5330