UNPKG

@webqit/util

Version:

Utility functions used accross multiple JS libraries.

12 lines (10 loc) 180 B
/** * Tells if val is undefined or is of type "boolean". * * @param string val * * @return bool */ export default function(val) { return val === true || val === false; };