code: function isFalsyValue(value: any) {
    const valueType = typeof value
  
    if (valueType === 'string') {
      return value.trim().length === 0
    } else if (valueType === 'boolean') {
      return !value
    }
  
    return false
  }
docs: /* @flow