Ran into a curious JavaScript quirk today while working on a flatten () function. Encountered an array with [null, true, undefined] where typeof null === "object" led to unexpected recursion due to ...