Error if layer is not found or feature id(s) format is not good
// Remove one feature (id = "234") from layer 4 selection
JMap.Map.Selection.removeFeaturesFromLayerSelection(4, "234")
// Remove 2 features (id = "234" and "567") from layer 4 selection
JMap.Map.Selection.removeFeaturesFromLayerSelection(4, [ "234", "567" ])
JMap.Map.Selection.removeFeaturesFromLayerSelection
Remove from current layer selection the provided feature(s).
Don't cancel previous selection, just remove feature(s) from it.