is-bound-func
Check if given function is bound or not.
npm install is-bound-func
API
isBoundFuncfn: T, chkLevel = 2
demo
;;
.forEach;
output
{ name: '', fn: [Function] }
[ null, 2 ]
{ name: '', fn: [Function] }
[ null, 2 ]
{ name: 'a', fn: [Function: a] }
[ null, 2 ]
{ name: 'parseInt', fn: [Function: parseInt] }
[ null, 2 ]
{ name: 'bound parseInt', fn: [Function: bound parseInt] }
[ 2, 2 ]