Answers for "addEnd Point js"

0

addEnd Point js

const addEndPoint = (string) => {
  const str = string.trim();
  if (str.substr(-1) == ".") return str;

  return `${str}.`;
};
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language