Slide 7
Slide 7 text
Node.jsについて
【Node.js
v6.x
で実装済みの主なES2015機能(feature)】
• デフォルト引数
• function(hoge
=
1)
{
return
hoge;
}
• 可変長引数
• function(a,
b,
...any)
{
return
any[0];
}
• Reflect
• Reflect.apply(anyFn,
thisArg,
args);
//
anyFn.apply(thisArg,
args);
• Reflect.construct(AnyClass,
args);
//
returns
a
instance
of
AnyClass.
• Reflect.construct(require(moduleName),
args);
//
construct
by
string!
• Proxy
• ごめん何も試してない
• 詳しいことは(ry