File: construct-javascript-function.yml

package info (click to toggle)
node-js-yaml 3.14.1%2Bdfsg%2B~3.12.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,508 kB
  • sloc: javascript: 19,225; makefile: 91; sh: 13
file content (14 lines) | stat: -rw-r--r-- 339 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- !!js/function 'function () { return 42 }'
- !!js/function '() => { return 72 }'
- !!js/function '() => 23'
- !!js/function 'function (x, y) { return x + y; } '
- !!js/function |
  function (foo) {
    var result = 'There is my ' + foo + ' at the table.';

    return {
      first: 42,
      second: 'sum',
      third: result
    };
  }