File: construct-javascript-function.yml

package info (click to toggle)
node-js-yaml 3.11.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,188 kB
  • sloc: makefile: 102; sh: 27
file content (13 lines) | stat: -rw-r--r-- 312 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
- !!js/function 'function () { return 42 }'
- !!js/function '() => { return 72 }'
- !!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
    };
  }