Skip to content

Commit

Permalink
Fix broken links for Reflect (#2147)
Browse files Browse the repository at this point in the history
Contributes to rustwasm/book#203
  • Loading branch information
Mackiovello authored Jun 3, 2020
1 parent 1076065 commit 0d39f90
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ untyped values.

## Reading Properties with `js_sys::Reflect::get`

[API documentation for `js_sys::Reflect::get`.](https://rustwasm.github.io/wasm-bindgen/api/js_sys/struct.Reflect.html#method.get)
[API documentation for `js_sys::Reflect::get`.](https://docs.rs/js-sys/0.3.39/js_sys/Reflect/fn.get.html)

A function that returns the value of a property.

Expand All @@ -29,7 +29,7 @@ let value = target[property_key];

## Writing Properties with `js_sys::Reflect::set`

[API documentation for `js_sys::Reflect::set`.](https://rustwasm.github.io/wasm-bindgen/api/js_sys/struct.Reflect.html#method.set)
[API documentation for `js_sys::Reflect::set`.](https://docs.rs/js-sys/0.3.39/js_sys/Reflect/fn.set.html)

A function that assigns a value to a property. Returns a boolean that is true if
the update was successful.
Expand All @@ -48,7 +48,7 @@ target[property_key] = value;

## Determining if a Property Exists with `js_sys::Reflect::has`

[API documentation for `js_sys::Reflect::has`.](https://rustwasm.github.io/wasm-bindgen/api/js_sys/struct.Reflect.html#method.has)
[API documentation for `js_sys::Reflect::has`.](https://docs.rs/js-sys/0.3.39/js_sys/Reflect/fn.has.html)

The JavaScript `in` operator as function. Returns a boolean indicating whether
an own or inherited property exists on the target.
Expand Down

0 comments on commit 0d39f90

Please sign in to comment.