mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
10 lines
229 B
JavaScript
10 lines
229 B
JavaScript
// `module.exports = <function identifier>`: the required binding IS the
|
|
// function — direct calls and bare-value uses (map callbacks) both work.
|
|
'use strict';
|
|
|
|
function double(n) {
|
|
return n * 2;
|
|
}
|
|
|
|
module.exports = double;
|