Skip to main content

arr_map

Function arr_map 

Source
pub(crate) fn arr_map(
    it: &mut Interp,
    t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

高階配列メソッドのコールバックは第2引数 thisArg を受け付ける(map/filter/ forEach/find 系すべてに共通の仕様だが、以前はどれも Value::Undefined を 決め打ちしており thisArg が完全に無視されていた)。