File: construct-javascript-function.yml

package info (click to toggle)
node-js-yaml 3.7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,140 kB
  • ctags: 446
  • sloc: makefile: 88; sh: 15
file content (12 lines) | stat: -rw-r--r-- 275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
- !!js/function 'function () { return 42 }'
- !!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
    };
  }