create account

RE: JavaScript Basics: Reflect.apply by adasq

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @ghasemkiani/javascript-basics-12

· @adasq ·
$1.10
Last line is really interesting...
`Function.prototype.apply.call`
Was not aware it works that way. Actually:

`Function.prototype.call === Function.prototype.bind.call.apply.bind.call`

So it seem that `Function.prototype` functions (`Function.prototype.bind`, `Function.prototype.call`, etc.) do have object linkage to `Function.prototype`object. We can even access such linkage. See here:
`Function.prototype.apply.__proto__ === Function.prototype`

That's why we can chain it deeply. Really interesting. Also was not aware of such Reflect feature. Thanks for sharing.
👍  
properties (23)
authoradasq
permlinkre-ghasemkiani-javascript-basics-12-20180216t071314212z
categoryjavascript
json_metadata{"tags":["javascript"],"app":"steemit/0.1"}
created2018-02-16 07:13:15
last_update2018-02-16 07:13:15
depth1
children1
last_payout2018-02-23 07:13:15
cashout_time1969-12-31 23:59:59
total_payout_value0.824 HBD
curator_payout_value0.273 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length571
author_reputation17,083,257,821,007
root_title"JavaScript Basics: Reflect.apply"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id37,936,440
net_rshares178,750,331,811
author_curate_reward""
vote details (1)
@ghasemkiani ·
Thank you for your informative reply.
👍  
properties (23)
authorghasemkiani
permlinkre-adasq-re-ghasemkiani-javascript-basics-12-20180216t091121343z
categoryjavascript
json_metadata{"tags":["javascript"],"app":"steemit/0.1"}
created2018-02-16 09:11:24
last_update2018-02-16 09:11:24
depth2
children0
last_payout2018-02-23 09:11:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length37
author_reputation90,438,911,242,538
root_title"JavaScript Basics: Reflect.apply"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id37,958,012
net_rshares613,404,255
author_curate_reward""
vote details (1)