mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 01:31:34 +00:00
add binding for push
This commit is contained in:
@ -145,4 +145,10 @@ extern {
|
||||
/// http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop
|
||||
#[wasm_bindgen(method)]
|
||||
pub fn pop(this: &Array) -> JsValue;
|
||||
|
||||
/// The push() method adds one or more elements to the end of an array and returns the new length of the array.
|
||||
///
|
||||
/// http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
|
||||
#[wasm_bindgen(method)]
|
||||
pub fn push(this: &Array, value: JsValue) -> u32;
|
||||
}
|
Reference in New Issue
Block a user