Ad
Code
Diff
  • const returnFromChild = (toReturn, returnWhat) =>((toRet, retWhat) => toRet ? retWhat : 'no return')(toReturn, returnWhat);
    • const returnFromChild=(toReturn, returnWhat)=>{
    • const child=(toRet, retWhat)=>{
    • if(toRet){
    • return retWhat
    • }
    • }
    • const retThis = child(toReturn,returnWhat);
    • if(retThis!=undefined){
    • return retThis
    • }
    • return 'no return'
    • }
    • const returnFromChild = (toReturn, returnWhat) =>((toRet, retWhat) => toRet ? retWhat : 'no return')(toReturn, returnWhat);
Code
Diff
  • const upperCase = str => str.toUpperCase();
    • upperCase = s => s.toUpperCase``
    • const upperCase = str => str.toUpperCase();

aoeu

Code
Diff
  • const returnFromChild = (toReturn, returnWhat) => toReturn ? returnWhat : 'no return';
    
    • returnFromChild=(toReturn,returnWhat)=> toReturn ? returnWhat : 'no return'
    • /*
    • returnFromChild=(toReturn,returnWhat)=>
    • (res=(((a,b)=>a?b:undefined )(toReturn,returnWhat)))!==undefined?res:'no return'
    • // save structure )))
    • */
    • const returnFromChild = (toReturn, returnWhat) => toReturn ? returnWhat : 'no return';