Helper functions for working with built-in JS data types