function isUndefined(val) {
  return typeof val === 'undefined';
}
Determine if a value is undefined

@param {Object} val The value to test
@returns {boolean} True if the value is undefined, otherwise false