/ittf/models/cheatsheets/js/index.ittf.ittf (primary)
1 meta2 schema js3 language javascript4 $include function5 $include call6 $include loops7 $include arrays8 $include react
/ittf/models/cheatsheets/js/t/function.ittf.ittf
1 element function2 tag function, =>, m3 ast FunctionDeclaration, FunctionExpression4 category function-statements5 item6 title Function with no params7 ittf8 function sayHello9 log 'Hello'10 item11 title Function with unchecked params12 ittf13 function sayHello14 param name15 log 'Hello ' + name16 item17 title Function with checked params18 ittf19 function sayHello20 string name21 log 'Hello ' + name22 item23 title Function with checked params and callback24 ittf25 function sayHello26 string name27 callback28 log 'Hello ' + name29 item30 title Function with checked params and callback31 ittf32 function sayHello33 string name34 any greetings35 callback36 log 'Hello ' + name
/ittf/models/cheatsheets/js/t/call.ittf.ittf
1 element call2 tag _3 ast CallExpression4 category call-statements5 item6 title Call with no parameters7 ittf8 _ execute9 item10 title Call with string and number parameters11 ittf12 _ display13 @ 'name'14 @ 315 item16 title Call with string and call parameters17 ittf18 _ showUserName19 @ userId20 _ getName21 @ userId22 item23 title Call with string and object parameters24 ittf25 _ showUserProfile26 @ userId27 {28 @ showEmail29 _ isEmailVisible30 @ userId31 [ sections32 @ 'about-me'33 @ 'projects'
/ittf/models/cheatsheets/js/t/loops.ittf.ittf
1 element loops2 tag _3 ast4 category arrays5 item6 title foreach loop7 ittf8 foreach item in myarray9 set item.a = item.b / 210 item11 title while loop12 ittf13 while item.parent14 set item = item.parent
/ittf/models/cheatsheets/js/t/arrays.ittf.ittf
1 element array2 tag _3 ast4 category arrays5 item6 title array concat single line statement7 ittf8 concat myarray 0, 1, 2, [3, 4]9 item10 title array concat multi line statement11 ittf12 concat myarray13 @ 014 @ 115 @ 216 [17 @ 318 @ 419 item20 title array concat mixed line statement21 ittf22 concat myarray 0, 123 @ 224 [25 @ 326 @ 427 item28 title array forEach statement with default thisArg29 ittf30 each item in myarray31 set item.a = item.b / 232 item33 title array forEach statement with explicit thisArg34 ittf35 each item in myarray myinstance36 set item.a = item.b / 237 item38 title array filter statement with default thisArg39 ittf40 filter item in myarray41 return item.a == 1042 item43 title array filter statement with explicit thisArg44 ittf45 filter item in myarray myinstance46 return item.a == this.maxAge47 item48 title array find statement with default thisArg49 ittf50 find item in myarray51 return item.a == 1052 item53 title array find statement with explicit thisArg54 ittf55 find item in myarray myinstance56 return item.a == this.maxAge57 item58 title array reduce statement59 ittf60 reduce item in myarray 061 return acc + item.a
/ittf/models/cheatsheets/js/t/react.ittf.ittf
1 element react2 tag _3 ast4 category react5 item6 title class7 ittf8 react MyComponent9 render10 return11 h1 Hello world12 item13 title var14 ittf15 var Hello16 div17 p sicut amet nequi abisse18 item19 title var svg20 ittf21 var Hello22 div23 svg24 rect25 stroke-dashoffset 10