Answers for "how to remove one letter of a string"

2

javascript remove duplicate letters in a string

function removeDuplicateCharacters(string) {
  return string
    .split('')
    .filter(function(item, pos, self) {
      return self.indexOf(item) == pos;
    })
    .join('');
}
console.log(removeDuplicateCharacters('baraban'));
Posted by: Guest on February-29-2020
8

javascript remove first character from string

var newStr = str.substring(1);
Posted by: Guest on June-17-2019

Code answers related to "how to remove one letter of a string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language