1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-30 04:30:01 +02:00

Add content for function borrowing

* added link to mdn docs for rest parameter

* Added links to MDN documentation for default parameters,
rest parameters and function parameters

* added rest parameter MDN Docs following
guide lines

* Added MDN Docs links to rest and

default parameters in function parameters

* Update content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md

* Update content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/100-default-params.md

* Update content/roadmaps/106-javascript/content/109-javascript-functions/101-function-parameters/101-rest-params.md

* Update readme.md

* Added link to article on function borrowing

* Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/100-function-borrowing.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
This commit is contained in:
Muhammad Najib Bala
2022-10-02 12:53:54 +01:00
committed by GitHub
parent 8445229633
commit ef618348fe

View File

@@ -1 +1,5 @@
# Function borrowing
# Function Borrowing
Function borrowing allows us to use the methods of one object on a different object without having to make a copy of that method and maintain it in two separate places. It is accomplished through the use of `.call()`, `.apply()`, or `.bind()`, all of which exist to explicitly set this on the method we are borrowing.
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://medium.com/@ensallee/function-borrowing-in-javascript-4bd671e9d7b4">Function borrowing</BadgeLink>