Gets a property value in the object by its name.
(&self, name: &str)
| 286 | impl<'a> Object<'a> { |
| 287 | /// Gets a property value in the object by its name. |
| 288 | pub fn get(&self, name: &str) -> Option<&ObjectProp<'a>> { |
| 289 | self.properties.iter().find(|p| p.name.as_str() == name) |
| 290 | } |
| 291 | |
| 292 | /// Gets a string property value from the object by name. |
| 293 | /// Returns `None` when not a string or it doesn't exist. |
no test coverage detected