feat: tanks tree mock data

This commit is contained in:
Michael Shabanov committed 2022-07-22 19:14:52 +02:00
1 parent 8999a1e005
commit 094eca3f5c
6 files changed
+144 -123

No files matched your search

@@ -0,0 +1,16 @@
using Newtonsoft.Json.Linq;
namespace WotBlitzStatisticsPro.Blazor.Helpers
{
public static class JTokenHelper
{
public static bool IsNullOrEmpty(this JToken token)
{
return (token == null) ||
(token.Type == JTokenType.Array && !token.HasValues) ||
(token.Type == JTokenType.Object && !token.HasValues) ||
(token.Type == JTokenType.String && token.ToString() == string.Empty) ||
(token.Type == JTokenType.Null);
}
}
}