get-or-throw

A convenience function for adhering to Typescript's noUncheckedIndexedAccess rule