We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
constructor
Object
1 parent 98e554c commit db17e9dCopy full SHA for db17e9d
crates/js-sys/src/lib.rs
@@ -1878,6 +1878,13 @@ extern "C" {
1878
pub fn assign3(target: &Object, source1: &Object, source2: &Object, source3: &Object)
1879
-> Object;
1880
1881
+ /// The constructor property returns a reference to the Object constructor
1882
+ /// function that created the instance object.
1883
+ ///
1884
+ /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor)
1885
+ #[wasm_bindgen(method, getter)]
1886
+ pub fn constructor(this: &Object) -> Function;
1887
+
1888
/// The Object.create() method creates a new object, using an existing
1889
/// object to provide the newly created object's prototype.
1890
///
0 commit comments