Boosted by brib@bribstodon.xyz ("brib :neofox_floof: :Nonbinary:"):
nwarner@tenforward.social ("Natasha Warner") wrote:
I sewed for the first time in a couple years today! My niece had a baby, and that pushed me to finding all the sewing stuff that was packed away, dusting off the machine, and remembering how to put pieces together. It was so much fun! One sewing question: i'm still using hand-me-down thread from my grandmother, who probably bought it in the 1990's. My mother (now also gone) told me years ago to throw it out and buy new. Normally I just keep using the old thread and it's fine, but tonight that pink thread just kept breaking over and over, especially on parts like the neck where you have to pull to stretch the fabric. Was my mother right and I should pitch the old thread? Or do I really need to switch needles when switching to stretch fabric, or the tension is just wrong? #sewing @amyfou






![[a javascript function for accessing nested properties in an object. given some nested object and a string like "first.second.third", split the string on periods and access successive layers of nesting with each of the keys] export function getNestedProperty(obj, path, defaultValue) { if (!obj || typeof obj !== 'object' || obj === null) { return defaultValue !== undefined ? defaultValue : undefined; } const parts = path.split('.'); let current = obj; for (let i = 0; i < parts.length; i++) { const part = parts[i]; if (current === null || typeof current !== 'object' || !current.hasOwnProperty(part)) { return defaultValue !== undefined ? defaultValue : undefined; } current = current[part]; } return current !== undefined ? current : (defaultValue !== undefined ? defaultValue : undefined); }](https://files.mastodon.social/cache/media_attachments/files/116/834/900/385/516/666/original/b35050a0da1a2e65.png)
