test.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. setTimeout(function() {
  2. thing();
  3. }, 500);
  4. ["a","b","c"].reduce(function(item, thing) {
  5. return thing + " " + item;
  6. }, "letters:")
  7. func(() => {
  8. thing();
  9. }, identifier);
  10. func(function() {
  11. thing();
  12. }, this.props.timeout * 1000);
  13. func((that) => {
  14. thing();
  15. }, this.props.getTimeout());
  16. func(() => {
  17. thing();
  18. }, true);
  19. func(() => {
  20. thing();
  21. }, null);
  22. func(() => {
  23. thing();
  24. }, undefined);
  25. func(() => {
  26. thing();
  27. }, /regex.*?/);
  28. compose((a) => {
  29. return a.thing;
  30. }, b => b * b);
  31. somthing.reduce(function(item, thing) {
  32. return thing.blah = item;
  33. }, {})
  34. somthing.reduce(function(item, thing) {
  35. return thing.push(item);
  36. }, [])
  37. reallyLongLongLongLongLongLongLongLongLongLongLongLongLongLongMethod((f, g, h) => {
  38. return f.pop();
  39. }, true);
  40. // Don't do the rest of these
  41. func(function() {
  42. thing();
  43. }, true, false);
  44. func(() => {
  45. thing();
  46. }, {yes: true, cats: 5});
  47. compose((a) => {
  48. return a.thing;
  49. }, b => {
  50. return b + "";
  51. });
  52. compose((a) => {
  53. return a.thing;
  54. }, b => [1, 2, 3, 4, 5]);
  55. renderThing(a =>
  56. <div>Content. So much to say. Oh my. Are we done yet?</div>
  57. ,args);
  58. setTimeout(
  59. // Something
  60. function() {
  61. thing();
  62. },
  63. 500
  64. );
  65. setTimeout(/* blip */ function() {
  66. thing();
  67. }, 500);