Tes Jika Nilai Fungsi

if (typeof v === 'function') {
    // do something
}
Embarrassed Echidna