@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
16 lines • 420 B
TypeScript
/**
* ```js
* import { shallowClone } from '~/utils/shallowClone'
* const newObj = shallowClone(obj)
* ```
*
* Clone an object with same prototype and properties
*
* @param obj the object to clone
* @returns new object with same prototype and properties
*
* @category utility
* @private
*/
export declare function shallowClone(source: object, target: object): any;
//# sourceMappingURL=shallowClone.d.ts.map