* 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>pull/2011/head
parent
8445229633
commit
ef618348fe
1 changed files with 5 additions and 1 deletions
@ -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> |
||||
|
Loading…
Reference in new issue