Function everyTrim

  • @description: 去除值类型为string的前后空格 @author: wuxh @Date: 2021-08-21 22:11:23

    Parameters

    • data: object | any[]

    Returns any

    @example: everyTrim({name: ' 123 ', arr: [' 33 ']}) => {name: '123': arr: ['33']}