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
280
festudy02-wasm
chikoski
1
950
An overview of WebAssembly; how it is used, created, and applied?
chikoski
1
670
20171018-WASM
chikoski
2
1.3k
20171002-wejs
chikoski
1
540
20170924-html5conference-wasm
chikoski
5
10k
Equivalence_in_JS
chikoski
0
1.4k
いまさら振り返るPromise
chikoski
1
530
Design and Implementation of Tech Talks
chikoski
0
110
Other Decks in Technology
See All in Technology
Amazon Q Developerで.NET Frameworkプロジェクトをモダナイズしてみた
kenichirokimura
1
200
20250116_自部署内でAmazon Nova体験会をやってみた話
riz3f7
1
100
AIアプリケーション開発でAzure AI Searchを使いこなすためには
isidaitc
1
120
.NET AspireでAzure Functionsやクラウドリソースを統合する
tsubakimoto_s
0
190
「隙間家具OSS」に至る道/Fujiwara Tech Conference 2025
fujiwara3
7
6.5k
テストを書かないためのテスト/ Tests for not writing tests
sinsoku
1
170
KMP with Crashlytics
sansantech
PRO
0
240
Formal Development of Operating Systems in Rust
riru
1
420
技術に触れたり、顔を出そう
maruto
1
160
デジタルアイデンティティ技術 認可・ID連携・認証 応用 / 20250114-OIDF-J-EduWG-TechSWG
oidfj
2
690
EMConf JP の楽しみ方 / How to enjoy EMConf JP
pauli
2
150
AWSサービスアップデート 2024/12 Part3
nrinetcom
PRO
0
140
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
360
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
173
51k
Navigating Team Friction
lara
183
15k
Adopting Sorbet at Scale
ufuk
74
9.2k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Being A Developer After 40
akosma
89
590k
A Philosophy of Restraint
colly
203
16k
Done Done
chrislema
182
16k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Thoughts on Productivity
jonyablonski
68
4.4k
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