update-it Functions to update javascript object tree. TODO extract from NeDB function to filter JS array by MongoDB query to implement $pull and $pullall operators