code: function converStringToObject (field) {
    let name = field.replace(/\s|-/gi, '')
    return {
      [name]: /^-/gi.test(field) ? -1 : 1
    }
  }
docs: Helpers 
  console.log( converStringToObject('-name    ') )
  console.log( converStringToObject('name    ') )
  { name: -1 }
  { name: 1 }