A Generic Function to Update and Manipulate Object Arrays. Advanced TypeScript: A Generic function of ultimate power! Chris Frewin Follow Jun 9 · 6 min read updateArray.ts in all its glory. This post is mirrored on my blog, where you’ll find way better code snippets — they’re copy-and-pasteable too.