@wizzard-packages/core 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,16 @@ store.dispatch({
|
|
|
42
42
|
});
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
## Utilities
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import { getByPath, setByPath } from '@wizzard-packages/core';
|
|
49
|
+
|
|
50
|
+
const data = { user: { name: 'Ada' } };
|
|
51
|
+
const name = getByPath(data, 'user.name');
|
|
52
|
+
const next = setByPath(data, 'user.name', 'Grace');
|
|
53
|
+
```
|
|
54
|
+
|
|
45
55
|
## Related packages
|
|
46
56
|
|
|
47
57
|
- @wizzard-packages/react - React provider + hooks on top of core
|