param { Function } fn return { Boolean } export const isCallback = function ( arg ) { return typeof arg === 'function' ; } ; param { Number } val return { Boolean } export const isNumber = function ( val ) : boolean { return ! isNaN ( parseInt ( val , 10 ) ) ; } ;