param cbs param context function execCallbacks ( cbs , context ? ) { cbs . forEach ( function ( cb ) { if ( typeof cb === "function" ) { cb ( context ) ; } else { throw new Error ( "Provided callback is not a function." ) ; } } ) ; } export { execCallbacks } ;