forky_web 0.2.0

Rust Utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
use extend::ext;
use js_sys::Array;

#[ext]
pub impl Array {
	fn to_vec_str(&self) -> Vec<String> {
		self.iter()
			.map(|v| v.as_string().unwrap())
			.collect::<Vec<_>>()
	}
}