get-full-name
v2.1.0
Published
Package will return full name when first, middle and last name are passed.
Downloads
6
Maintainers
Readme
@get-full-name
Removes all spaces from a string.
Install
$ npm install get-full-name
Usage
const getFullName = require('getFullName');
//=> When we have all the three name components.
getFullName('firstName', 'lastName', 'middleName');
//=> When we have only first name and last name.
getFullName('firstName', 'lastName');
//=> Name can be passed as an object
let name = {
firstName: '',
middleName: '',
lastName: '',
};
getFullName(name);