UNPKG

@webqit/util

Version:

Utility functions used accross multiple JS libraries.

12 lines (10 loc) 222 B
/** * Tells if val is undefined or is of type "undefined". * * @param string val * * @return bool */ export default function(val) { return arguments.length && (val === undefined || typeof val === 'undefined'); };