@h-utils/operate-object
v0.1.0
Published
<a name="readmemd"></a>
Downloads
3
Readme
@h-utils/operate-object
@h-utils/operate-object - v0.0.2
Table of contents
Interfaces
Type Aliases
Functions
Type Aliases
ObjectKeyType
Ƭ ObjectKeyType: string
| number
Functions
default
▸ default(objOrArr
, operation
): null
| IUniformObject
<unknown
> | unknown
[] | unknown
get a new object/array that performed particular operation
Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| objOrArr
| unknown
| any object or array that you want to operate. |
| operation
| IOperation
| define to set or not set content, and how to set. |
Returns
null
| IUniformObject
<unknown
> | unknown
[] | unknown
the operation result
@h-utils/operate-object - v0.0.2 / IOperation
Interface: IOperation
Callable
IOperation
▸ IOperation(key
, value
): Object
Parameters
| Name | Type |
| :------ | :------ |
| key
| ObjectKeyType
|
| value
| unknown
|
Returns
Object
| Name | Type |
| :------ | :------ |
| isNeed
| boolean
|
| key?
| ObjectKeyType
|
| value?
| unknown
|
@h-utils/operate-object - v0.0.2 / IUniformObject
Interface: IUniformObject<K>
Type parameters
| Name |
| :------ |
| K
|
Indexable
▪ [key: string
]: K