Libertas OS API Documentation
    Preparing search index...

    Interface ObjectConstructor

    interface ObjectConstructor {
        new ObjectConstructor(value?: any): Object;
        entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
        entries(o: {}): [string, any][];
        entries<K, V>(o: LuaPairsIterable<K, V>): [K, V][];
        keys(o: object): string[];
        keys(o: {}): string[];
        keys<K>(o: LuaPairsIterable<K, any> | LuaPairsKeyIterable<K>): K[];
        values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
        values(o: {}): any[];
        values<V>(o: LuaPairsIterable<any, V>): V[];
        (): any;
        (value: any): any;
    }
    • Returns any

    • Parameters

      • value: any

      Returns any

    Index

    Constructors

    Methods

    Constructors

    • Parameters

      • Optionalvalue: any

      Returns Object

    Methods

    • Returns an array of key/values of the enumerable own properties of an object

      Type Parameters

      • T

      Parameters

      • o: { [s: string]: T } | ArrayLike<T>

        Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

      Returns [string, T][]

    • Returns an array of key/values of the enumerable own properties of an object

      Parameters

      • o: {}

        Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

      Returns [string, any][]

    • Returns an array of key/values of an object, when iterated with pairs.

      Type Parameters

      • K
      • V

      Parameters

      Returns [K, V][]

    • Returns the names of the enumerable string properties and methods of an object.

      Parameters

      • o: object

        Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

      Returns string[]

    • Returns the names of the enumerable string properties and methods of an object.

      Parameters

      • o: {}

        Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

      Returns string[]

    • Returns an array of keys of an object, when iterated with pairs.

      Type Parameters

      • K

      Parameters

      Returns K[]

    • Returns an array of values of the enumerable own properties of an object

      Type Parameters

      • T

      Parameters

      • o: { [s: string]: T } | ArrayLike<T>

        Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

      Returns T[]

    • Returns an array of values of the enumerable own properties of an object

      Parameters

      • o: {}

        Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.

      Returns any[]

    • Returns an array of values of an object, when iterated with pairs.

      Type Parameters

      • V

      Parameters

      Returns V[]