/ cloudformation-templates / node_modules / aws-cdk / node_modules / es5-ext / lib / Object / valid-callable.js
valid-callable.js
1 'use strict'; 2 3 var isCallable = require('./is-callable'); 4 5 module.exports = function (fn) { 6 if (!isCallable(fn)) { 7 throw new TypeError(fn + " is not a function"); 8 } 9 return fn; 10 };