@mdf.js/utils
Version:
MMS - API Core - Common utils tools
20 lines • 719 B
TypeScript
/**
* Copyright 2024 Mytra Control S.L. All rights reserved.
*
* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
* or at https://opensource.org/licenses/MIT.
*/
/**
* De-cycle an object to a JSON-safe representation
* @param object - The object to be decycled
* @param replacer - A function that transforms the object before decycling
* @returns The decycled object
*/
export declare function deCycle(object: any, replacer?: (value: any) => any): any;
/**
* Re-cycle an object to its original form
* @param $ - The object to be recycled
* @returns The recycled object
*/
export declare function retroCycle($: any): any;
//# sourceMappingURL=cycle.d.ts.map