Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Call function IF AND ONLY IF IT EXISTS AND IS VALID otherwise return as undefined */
- function chcalc(name) {chcalc:{
- try {
- eval(name)
- } catch(err) {
- break chcalc
- }
- if (typeof eval(name) == 'function') {
- eval(name)();
- }
- }}
- // Minified Version:
- /*
- function chcalc(name){a:{try{eval(name)}catch(err){break a}"function"==typeof eval(name)&&eval(name)()}}
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement