Functions
deepCopy
- deepCopy(data: any): object | any
Parameters
Returns object | any
objectToString
- objectToString(value: any, space: number, simplify: boolean): string
Parameters
value: any
space: number
simplify: boolean
Returns string
recursionGetValue
- recursionGetValue(keys: string | string[], data: object | string[], childKey: string, splice: boolean): any
Parameters
keys: string | string[]
data: object | string[]
childKey: string
splice: boolean
Returns any
recursionSetValue
- recursionSetValue(keys: string | string[], data: object | any[], value: any, childKey: string, splice: boolean): void
Parameters
keys: string | string[]
data: object | any[]
value: any
childKey: string
splice: boolean
Returns void
verifyValueInArray
- verifyValueInArray(value: any, array: any[], defaultValue: any): any
Parameters
value: any
array: any[]
defaultValue: any
Returns any
对象深拷贝