00001 var identity = require('./identity'); 00002 00010 function castFunction(value) { 00011 return typeof value == 'function' ? value : identity; 00012 } 00013 00014 module.exports = castFunction;