Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Functions in JavaScript
Search
chikoski
December 22, 2017
Technology
1
1.1k
Functions in JavaScript
chikoski
December 22, 2017
Tweet
Share
More Decks by chikoski
See All by chikoski
20210825_ossx
chikoski
0
270
festudy02-wasm
chikoski
1
940
An overview of WebAssembly; how it is used, created, and applied?
chikoski
1
650
20171018-WASM
chikoski
2
1.3k
20171002-wejs
chikoski
1
530
20170924-html5conference-wasm
chikoski
5
10k
Equivalence_in_JS
chikoski
0
1.3k
いまさら振り返るPromise
chikoski
1
510
Design and Implementation of Tech Talks
chikoski
0
110
Other Decks in Technology
See All in Technology
アプリエンジニアのためのGraphQL入門.pdf
spycwolf
0
100
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
220
Lambdaと地方とコミュニティ
miu_crescent
2
370
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
TanStack Routerに移行するのかい しないのかい、どっちなんだい! / Are you going to migrate to TanStack Router or not? Which one is it?
kaminashi
0
600
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
420
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
DynamoDB でスロットリングが発生したとき/when_throttling_occurs_in_dynamodb_short
emiki
0
260
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
490
FlutterアプリにおけるSLI/SLOを用いたユーザー体験の可視化と計測基盤構築
ostk0069
0
110
組織成長を加速させるオンボーディングの取り組み
sudoakiy
2
220
SDN の Hype Cycle を一通り経験してみて思うこと / Going through the Hype Cycle of SDN
mshindo
1
100
Featured
See All Featured
Statistics for Hackers
jakevdp
796
220k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
110
Designing the Hi-DPI Web
ddemaree
280
34k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
GraphQLとの向き合い方2022年版
quramy
43
13k
The Language of Interfaces
destraynor
154
24k
The Invisible Side of Design
smashingmag
298
50k
Facilitating Awesome Meetings
lara
50
6.1k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Scaling GitHub
holman
458
140k
Transcript
関数の話 @chikoski
function宣言と アロー関数式 GVODUJPOJE WBMVF \ SFUVSOWBMVF ^ DPOTUJE WBMVF \
SFUVSOWBMVF ^ DPOTUJEWBMVFWBMVF
関数適用 DPOTUBEE B C B C BEE BEEӕ
Ӽ㊉⇹ BEE BEEӕ Ӽ㊉⇹ BEE BEE BEE BEEӕ Ӓ Ӽ㊉⇹ӁѬ ᒉӳӶӉ ӼBEEӼ㊉⇹
パイプライン演算子 DPOTUEPVCMFOO DPOTUBEE0OFOO DPOTUNPE B C BC DPOTUWBMVF
NPE BEE0OF EPVCMF WBMVF]EPVCMF ]BEE0OF ] ONPE O https://github.com/tc39/proposal-pipeline-operator
関数適用は遅い DPOTUWBMVF NPE BEE0OF EPVCMF DPOTUWBMVF
末尾呼び出し GVODUJPOBEE B C \ SFUVSOB C ^ GVODUJPOBEE0OF B
\ SFUVSOBEE B ^ BEE0OF
末尾呼び出し GVODUJPOBEE B C \ DPOTUDB C SFUVSOD ^ GVODUJPOBEE0OF
B \ DPOTUCBEE B SFUVSOC ^ BEE0OF
ؔɿखଓ͖ͷྻʹ໊લΛ͚ͭͨͷ GVODUJPOQPXFS B \ GPS MFUJJBB \ BB B ^
SFUVSOB ^
関数はオブジェクト GVODUJPODSFBUF*E \ SFUVSOGVODUJPO WBMVF \ SFUVSOWBMVF ^ ^ DPOTUDSFBUF*E
WBMVFWBMVF
クロージャ GVODUJPOBEE4PNF WBMVF \ SFUVSOGVODUJPO B \ SFUVSOB WBMVF ^
^ DPOTUBEE4PNF WBMVFBB WBMVF DPOTUBEEBEE4PNF BEE
部分適用 DPOTUBEE B C B C DPOTUBEE4PNFBCBEE B C
DPOTUBEEBEE4PNF BEE C ӒҮҰ㕉ᡔҶӑҷӵ ᐠᡔӘक㋚ӕ㕉ᡔҶ㊉⇹ҿӶӐҮӵӒӬӶӵ BEE
部分適用の利用例 DPOTUEPN UBH BUUST\^ \ DPOTUFM EPDVNFOUDSFBUF&MFNFOU UBH GPS
DPOTULFZJOBUUST \ FMTFU"UUSJCVUF LFZ BUUST<LFZ> ^ SFUVSOFM ^
部分適用の利用例 DPOTUEJW BUUST\^ EPN EJW BUUST DPOTUBVEJP
BUUST\^ EPN BVEJP BUUST DPOTUGJMF BUUST\^ \ BUUSTUZQFGJMF SFUVSOEPN JOQVU BUUST ^
ロジックの パラメータ化 DPOTUGJOE&WFO/VNCFSTMJTU\ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \ JG OVN \
SFTVMUQVTI OVN ^ ^ ^ DPOTUMJTU"< > DPOTUMJTU#GJOE&WFO/VNCFST MJTU" < >
ロジックの パラメータ化 DPOTUGJOE MJTU G \ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \
JG G OVN \ SFTVMUQVTI OVN ^ ^ ^ DPOTUMJTU"< > DPOTUMJTU#GJOE JJ < >
部分適用 DPOTUGJOE MJTU G \ DPOTUSFTVMU<> GPS DPOTUOVNPGMJTU \ JG
G OVN \ SFTVMUQVTI OVN ^ ^ ^ DPOTU'JOEFSGMJTUGJOE G MJTU DPOTUG'JOEFS JJ GJOE MJTU JJ
画面に描かれるキャラ DMBTT&OFNZ\ DPOTUSVDUPS QPTJUJPO DPMMJEFS SFOEFSFS \ UIJTQPTJUJPOQPTJUJPO
UIJTDPMMJEFSDPMMJEFS UIJTSFOEFSFSSFOEFSFS ^ ^
Renderer & Collider DPOTUSFOEFSFS'BDUPSZ J DY Q DYESBX*NBHF QY QZ
J DPOTUDJSDMF$PMMJEFS S Q Q EJTU Q Q S DPOTUSSFOEFSFS'BDUPSZ JNH DPOTUDDJSDMF$PMMJEFS DPOTUJOTUBODF'BDUPSZ LMBTTQOFXLMBTT Q S D DPOTUFOFNZ'BDUPSZJOTUBODF'BDUPSZ &OFNZ DPOTUFFOFNZ'BDUPSZ OFX1PTJUJPO