Today has been so hard mentally. I didn’t do much of anything. I was able to get laundry done. Now, put away is another story. I tried to focus but it just wasn’t working.
Therapy was good today. We talked a bit about anxiety and autism. We also talked about the holidays and my stress level during the holidays.
I’d like to declutter my stuff. I watch a few channels on decluttering and of course, read Marie Kondo’s book. So I have a few questions to ask myself when I declutter:
Does it bring me joy?
Do I need it?
Why do I have it?
What would I use if I didn’t have it?
Would I replace this if it were destroyed?
Of course right now I feel so overwhelmed that I’m not sure that I can declutter anything. That does make me kind of sad. I like organizing my things. But I will keep this here to help me later.
So, my car, in my eyes, will probably be totaled out. There is over $13,000 worth of damage to my car. I haven’t heard from the insurance company yet but I don’t think it will be good news. Now I just wait and see what the insurance company has to say.
JavaScript notes…
——————————————
Given the array arr, iterate through and remove each element starting from the first element (the 0 index) until the function func returns true when the iterated element is passed through it.
Then return the rest of the array once the condition is satisfied, otherwise, arr should be returned as an empty array.
function dropElements(arr, func) { return arr; } dropElements([1, 2, 3], function(n) {return n < 3; });
function dropElements(arr, func) { while (arr.length > 0 && !func(arr[0])) { arr.shift(); } return arr; } // test here dropElements([1, 2, 3, 4], function(n) { return n >= 3; });