V
V
vrazbros2017-08-03 17:26:33
npm
vrazbros, 2017-08-03 17:26:33

Who met the functionality in js to shorten names?

You need to shorten the names to symbols, leave the title: Mr / Mrs / Miss and the last names
Anton Sidorov -> A Sidorov
Anton John Sidorov -> A Sidorov
Mr Anton John Sidorov -> Mr A Sidorov
these are not all the rules, I don’t want to reinvent this wheel myself , maybe someone met the package in npm or the corresponding library?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2017-08-03
@vitali1995

What's wrong with writing it yourself? We leave the words "Mr / Mrs / Miss", cut off the next word, remove further words, leave the last one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question