In angular 1.x we use this angular.isFunction function to determines if a reference is a Function. What is the equivalent of that function in Angular 2. Checked in doc. But did not get anything.
Also please suggest the equivalent functions of this list in angular 2
You can use the JS typeof
operator:
typeof x === 'function'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With