Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils/utils"

Index

Type aliases

AnyObject

AnyObject: {}

Type declaration

  • [key: number]: unknown

Functions

cloneObject

  • cloneObject(obj: AnyObject, except?: string[] | number[]): object
  • Deep clones the given obj, except specific 1st-level keys.

    Parameters

    • obj: AnyObject

      object to be cloned.

    • Optional except: string[] | number[]

      keys in this array will be erased from the clone.

    Returns object

cloneWithoutHierarchy

createEmptyNode

  • Creates an empty XML node.

    Parameters

    • type: XmlNodeTypes
    • Default value piUseAttribute: boolean = false

      true if processing instruction should use attributes.

    Returns XmlNode

defaultDeclaration

dehydrate

kvpArray

kvpObject

objXml

  • objXml(obj: object, options?: Options.JS2XML): string
  • Converts object to XML string

    Parameters

    • obj: object
    • Optional options: Options.JS2XML

    Returns string

rectifyAttributeValue

  • rectifyAttributeValue(value: string): string

rectifyNodeAttributes

removeHierarchyFromNode

xmlJs

Generated using TypeDoc