3 ms·A slick solution. But I've given up on runtime guards in JS; life is just better with a type system.by _bxg1 8y agoA slick solution. But I've given up on runtime guards in JS; life is just better with a type system.