localStorage.getItem('lists') === null
localStorage.getItem('lists') == null
yarn add moment
import moment from 'moment';
const firstTimestamp = new Date().getTime();
const secondTimestamp = new Date().getTime();
const firstMoment = moment(firstTimestamp);
const secondMoment = moment(secondTimestamp);
firstMoment.diff(secondMoment);
Dispatcher.BeginInvoke(new Action(delegate
{
lcv2.Filter = item =>
{
int count = item.GetType().GetProperties().Count<object>();
bool result = false;
for (int i = 0; i < count; i++)
if (item.GetType().GetProperties()[i].GetValue(item, null).ToString().Contains(_searchTextBoxText))
result = true;
return result;
};
}), System.Windows.Threading.DispatcherPriority.Background);