Introduce an API to test is a value is undefined and utilize it across the feature code

Details

Description

To improve the feature JavaScript code, it would be nice to have a global API (in core.util or the like) that can be used when testing a value against undefined. Currently, much of the code uses "typeof val == 'undefined'" checks. These could be replaced with a utility function that does that check.