Export function to validate if a value is a function or not
- License:
- Source:
Example
import { isFunction } from 'itee-validators' if( isFunction( value ) ) { //... } else { //... }
Methods
-
<static> isFunction(data)
-
Check if given data is a function
Parameters:
Name Type Description data
* The data to check against the functionality Returns:
true if data is a function, false otherwise.- Type
- boolean
-
<static> isNotFunction(data)
-
Check if given data is not a function
Parameters:
Name Type Description data
* The data to check against the functionality Returns:
true if data is not a function, false otherwise.- Type
- boolean