• Gets the extension type.

    Parameters

    • target: any

      Destination object.

    Returns object

    Extension type object.

    var singleType = ['undefined', 'null', 'number', 'string', 'boolean', 'regexp', 'object', 'symbol'];
    var unionType = ['array', 'choice', 'function', 'class', 'union'];