Home > sculp-js > objectFill
objectFill() function
对象填充
Signature:
typescript
export declare function objectFill<R extends AnyObject = AnyObject>(source: Partial<R>, target: Partial<R>, fillable?: (s: typeof source, t: typeof target, key: keyof R) => boolean): R;Parameters
Parameter | Type | Description |
|---|---|---|
source |
| |
target |
| |
fillable | (s: typeof source, t: typeof target, key: keyof R) => boolean | (Optional) |
Returns:
R
{R}