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>
pull/2011/head
Muhammad Najib Bala 2 years ago committed by GitHub
parent 8445229633
commit ef618348fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/roadmaps/106-javascript/content/111-javascript-this-keyword/100-function-borrowing.md

@ -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…
Cancel
Save