UNPKG

bearcat-jstrace

Version:

[jstrace](https://github.com/jstrace/jstrace) support for [bearcat](https://github.com/bearcatnode/bearcat) based on bearcat AOP

27 lines (24 loc) 819 B
/*! * .______ _______ ___ .______ ______ ___ .__________. * ( _ ) ( ____) / \ ( _ ) ( ) / \ ( ) * | |_) ) | |__ / ^ \ | |_) ) | ,----' / ^ \ `---| |---` * | _ < | __) / /_\ \ | ) | | / /_\ \ | | * | |_) ) | |____ / _____ \ | |) ----.| `----./ _____ \ | | * (______) (_______/__/ \__\ ( _| `.____) (______)__/ \__\ |__| * * Bearcat-jstrace Utils * Copyright(c) 2014 fantasyni <fantasyni@163.com> * MIT Licensed */ var Utils = {}; module.exports = Utils; /** * Utils check function * * @param {Function} func function * @return {Boolean} true|false * @api public */ Utils.checkFunction = function(func) { return !!func && (typeof func === 'function'); }