Ad

Format in value value with fixed decimal places numberOfPlaces if it is a number, if it's not - return input as is.

function formatIfNumber(value, numberOfPlaces) {
  return "";
}