feat(Map): add Map.get

This commit is contained in:
Jannik Keye
2018-06-28 21:53:20 +02:00
parent f7e4019e72
commit e0b399643a
2 changed files with 37 additions and 0 deletions

View File

@ -318,6 +318,12 @@ extern {
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete
#[wasm_bindgen(method)]
pub fn delete(this: &Map, key: &str) -> bool;
/// The get() method returns a specified element from a Map object.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get
#[wasm_bindgen(method)]
pub fn get(this: &Map, key: &JsValue) -> JsValue;
}
// Math