BackgroundModule mahalo/utils/clone

This module exports a utility function for cloning objects or other values.

Index

Functions

clone

  • clone(x: any): any
  • Creates an exact clone of any value that can later bechecked for equality to its original by using default.

    Parameters
    • x: any
    Returns any

create

  • create(prototype: any): any
  • Parameters
    • prototype: any
    Returns any