mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 01:31:34 +00:00
add binding for pop
This commit is contained in:
@ -139,4 +139,10 @@ extern {
|
||||
/// http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin
|
||||
#[wasm_bindgen(method, js_name = copyWithin)]
|
||||
pub fn copy_within(this: &Array, target: i32, start: i32, end: i32) -> Array;
|
||||
|
||||
/// The pop() method removes the last element from an array and returns that element. This method changes the length of the array.
|
||||
///
|
||||
/// http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop
|
||||
#[wasm_bindgen(method)]
|
||||
pub fn pop(this: &Array) -> JsValue;
|
||||
}
|
Reference in New Issue
Block a user