map

transforms the initial calling array according to the functor

array map(function functor,object master);

Deprecated

The PowerArray mixin will be removed in Webix 7.0

Parameters

functorfunctionthe method which needs executing
masterobjectthe object that the method should be applied to

Returns

arraythe transformed initial array

Example

view:"datatable",
scheme:{
    $group:{
        by:"year",
        map:{
            votes:["votes", "sum"]
        }
    }
}

Related samples

See also
Back to top