UNPKG

monad-ts

Version:

Monad-ts is a small library implements some of key monads and way to chain them in a pipe (flow) in JavaScript and TypeScript. Angular 2+ compatible.

8 lines (7 loc) 210 B
/** * The service to clone complex objects, including Map. * @method clone * @param {T} obj - Object or Primitives to clone. * @return {T} */ export declare function clone<T>(obj: T, map?: any): T;