/// Deletes the key and associated value. Returns true if the key existed or false if it didn't.
Deletes the key and associated value. Returns true if the key existed or false if it didn't.
Deletes the key and associated value . Returns true if the key existed or false if it didn ' t .
pub async fn delete(&mut self, key: &str) -> Result<bool> {
        let fut: JsFuture = self.inner.delete_internal(key)?.into();
        fut.await
            .and_then(|jsv| {
                jsv.as_bool()
                    .ok_or_else(|| JsValue::from("Promise did not return bool"))
            })
            .map_err(Error::from)
    }
pub async fn delete ( & mut self , key : & str ) -> Result < bool > { let fut : JsFuture = self . inner . delete_internal ( key ) ? . into ( ) ; fut . await . and_then ( | jsv | { jsv . as_bool ( ) . ok_or_else ( | | JsValue :: from ( " " ) ) } ) . map_err ( Error :: from ) }
Deletes the key and associated value.
Deletes the key and associated value .
&mut self
key
&str