Skip to content

if you need to remove extra spaces from object properties and string variables you can use this package

License

Notifications You must be signed in to change notification settings

arifemir/remove-extra-spaces

Repository files navigation

remove-extra-spaces

if you need to remove extra spaces from object properties and string variables you can use this package

Usage

//objectTrim function using
let object = {
  key: '  hi  xD  ',
  key2: {
    key: 'hi   xD',
	key2: {
	  key: 'hi    xD'
	}
  }
}

object = objectTrim(object)
console.log(object.key2.key2.key) //hi xD

//stringTrim function using
let string = ' hi   xD  '

string = stringTrim(string)
console.log(string)//hi xD

About

if you need to remove extra spaces from object properties and string variables you can use this package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published