Skip to main content

ArrayJoin

Trait ArrayJoin 

Source
pub trait ArrayJoin<'a> {
    // Required method
    fn array_join(
        &self,
        ctx: &impl GlobalContext<'a>,
        separator: Option<&str>,
    ) -> Option<String>;
}

Required Methods§

Source

fn array_join( &self, ctx: &impl GlobalContext<'a>, separator: Option<&str>, ) -> Option<String>

Array.prototype.join ( separator ) https://tc39.es/ecma262/#sec-array.prototype.join

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> ArrayJoin<'a> for ArrayExpression<'a>

Source§

fn array_join( &self, ctx: &impl GlobalContext<'a>, separator: Option<&str>, ) -> Option<String>

Implementors§