-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(kitify): Enhance README, add DOM, Object, Type docs
- Loading branch information
Showing
4 changed files
with
148 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Object | ||
|
||
Object related utility functions | ||
|
||
对象相关的工具函数。 | ||
|
||
## usage | ||
|
||
```ts | ||
import { assign } from 'kitify' | ||
|
||
import assign from 'kitify/assign' | ||
``` | ||
|
||
## API | ||
|
||
### assign | ||
|
||
Assigns enumerable properties of source objects to the target object. | ||
|
||
将源对象的属性分配到目标对象上。 | ||
|
||
```ts | ||
assign(target: object, ...sources: object[]): object | ||
``` | ||
|
||
#### arguments | ||
|
||
| Name | Type | Description | | ||
| ------- | ---------- | ------------------- | | ||
| target | `object` | The target object. | | ||
| sources | `object[]` | The source objects. | | ||
|
||
#### example | ||
|
||
```js | ||
assign({ a: 1 }, { b: 2 }, { b: 3 }) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters