method ObjectConstructor.create
Private
ObjectConstructor.create(o: object | null): any

Creates an object that has the specified prototype or that has null prototype.

Parameters

o: object | null

Object to use as a prototype. May be null.

Return Type

any
ObjectConstructor.create(
o: object | null,
properties: PropertyDescriptorMap & ThisType<any>,
): any

Creates an object that has the specified prototype, and that optionally contains specified properties.

Parameters

o: object | null

Object to use as a prototype. May be null

JavaScript object that contains one or more property descriptors.

Return Type

any