UNPKG

@webqit/util

Version:

Utility functions used accross multiple JS libraries.

13 lines (11 loc) 221 B
/** * Tells if val is of type "function". * This holds true for both regular functions and classes. * * @param object val * * @return bool */ export default function(val) { return typeof val === 'function'; };