oxc_ecmascript

Trait StringLastIndexOf

Source
pub trait StringLastIndexOf {
    // Required method
    fn last_index_of(
        &self,
        search_value: Option<&str>,
        from_index: Option<f64>,
    ) -> isize;
}

Required Methods§

Source

fn last_index_of( &self, search_value: Option<&str>, from_index: Option<f64>, ) -> isize

String.prototype.lastIndexOf ( searchString [ , position ] ) https://tc39.es/ecma262/#sec-string.prototype.lastindexof

Implementations on Foreign Types§

Source§

impl StringLastIndexOf for &str

Source§

fn last_index_of( &self, search_value: Option<&str>, from_index: Option<f64>, ) -> isize

Implementors§