actions = [{ 'name' : 'Share',
'icon' : 'fa fa-share-alt library_icon mylibrary-icon-right'
},{
'name' : 'Edit',
'icon' : 'fa fa-pencil-square-o library_icon mylibrary-icon-right'
},
{
'name' : 'Embed',
'icon' : 'fa fa-link library_icon mylibrary-icon-right'
},
{
'name' : 'Schedule',
'icon' : 'fa fa-calendar library_icon mylibrary-icon-right'
}
];
Is there a method to remove the second object from the actions array, apply a condition, and then insert it back at the same position?